Skip to content

Commit

Permalink
fix(Release): Adds elevated permissions on checkout [CICD-925] (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-learningpool authored Apr 5, 2023
1 parent b6e53fb commit 4da0448
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Release

on: push

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -13,6 +15,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15

permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -22,5 +30,5 @@ jobs:
- run: npm ci
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}

0 comments on commit 4da0448

Please sign in to comment.