Skip to content

Commit 2cb288e

Browse files
committed
Add permissions
1 parent 9e738ad commit 2cb288e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ jobs:
251251
assertion:
252252
name: Generate and Sign Assertion Documents
253253
needs: [vars, binary]
254+
permissions:
255+
contents: read
256+
id-token: write # for compliance-rules action to sign assertion doc
254257
env:
255258
GOPROXY: ${{ needs.vars.outputs.goproxy }}
256259
runs-on: ubuntu-24.04
@@ -272,10 +275,11 @@ jobs:
272275
run: |
273276
echo "Generating module dependencies info..."
274277
cd cmd/gateway
275-
go list -m all > ../../goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ strategy.job-index }}.txt
276-
echo "Module dependencies saved to goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ strategy.job-index }}.txt"
278+
goversionm=goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt
279+
go list -m all > ../../goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt
280+
echo "Module dependencies saved to goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt"
277281
cd ../..
278-
echo "goversionm=goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ strategy.job-index }}.txt" >> $GITHUB_OUTPUT
282+
echo "goversionm=goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt" >> $GITHUB_OUTPUT
279283
280284
- name: Generate Assertion Document
281285
id: assertiondoc

0 commit comments

Comments
 (0)