Skip to content

Commit

Permalink
test: move permissions inside job
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed May 3, 2024
1 parent dc0024d commit 3714a32
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ name: CI

on: ['push', 'pull_request']

permissions:
contents: write # to upload assets to releases
attestations: write

jobs:
ci:
runs-on: ubuntu-latest

name: CI
runs-on: ubuntu-latest
permissions:
contents: write # to upload assets to releases
attestations: write # to upload assets attestation for build provenance

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -55,4 +53,4 @@ jobs:

- uses: actions/attest-build-provenance@v1
with:
subject-path: '*'
subject-path: "*"

0 comments on commit 3714a32

Please sign in to comment.