Skip to content

Commit b056992

Browse files
committed
fix zizmor security alerts on GHA workflows
Signed-off-by: Guillaume Lours <[email protected]>
1 parent a3f88a0 commit b056992

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ jobs:
7777
-
7878
name: Prepare
7979
run: |
80-
platform=${{ matrix.platform }}
80+
platform=${ matrix.platform }
8181
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
82+
env:
83+
PLATFORM: ${{ matrix.platform }}
8284
-
8385
name: Set up QEMU
8486
uses: docker/setup-qemu-action@v3

.github/workflows/scorecards.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
push:
88
branches: [ "main" ]
99

10-
# Declare default permissions as read only.
11-
permissions: read-all
12-
1310
jobs:
1411
analysis:
1512
name: Scorecards analysis
@@ -19,6 +16,18 @@ jobs:
1916
security-events: write
2017
# Used to receive a badge.
2118
id-token: write
19+
# read permissions to all the other objects
20+
actions: read
21+
attestations: read
22+
checks: read
23+
contents: read
24+
deployments: read
25+
issues: read
26+
discussions: read
27+
packages: read
28+
pages: read
29+
pull-requests: read
30+
statuses: read
2231

2332
steps:
2433
- name: "Checkout code"

0 commit comments

Comments
 (0)