Skip to content

Commit

Permalink
ci: more granular permissions (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Jan 14, 2022
1 parent f445606 commit d3a286c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ env:

permissions:
contents: read
id-token: write
packages: write

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write

steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
Expand Down Expand Up @@ -57,6 +58,8 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
Expand Down

0 comments on commit d3a286c

Please sign in to comment.