Skip to content

Commit 1209fe9

Browse files
authored
* restore global permissions to be only "contents: read" (#446)
as suggested by best practices * disable "contents: write" for tpip workflow until git push gets resurrected Signed-off-by: Jens Reinecke <[email protected]>
1 parent 7a14b68 commit 1209fe9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ concurrency:
2222

2323
permissions:
2424
contents: read
25-
packages: read
2625

2726
jobs:
2827
build:
@@ -37,6 +36,8 @@ jobs:
3736
- platform: macos-14
3837
target: darwin
3938
runs-on: ${{ matrix.platform }}
39+
permissions:
40+
packages: read
4041
name: 'Build and test (${{ matrix.target }})'
4142

4243
steps:
@@ -164,6 +165,8 @@ jobs:
164165
- linux-x64
165166
- linux-arm64
166167
- darwin-arm64
168+
permissions:
169+
packages: read
167170
steps:
168171
- name: Harden the runner (Audit all outbound calls)
169172
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0

.github/workflows/tpip.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
report:
2124
permissions:
22-
contents: write # for Git to git push
25+
# contents: write # for Git to git push # disabled until resurrecting direct git push
2326
packages: read
2427

2528
name: Generate report

0 commit comments

Comments
 (0)