Skip to content

Commit

Permalink
build: prevent persisting default GitHub token in semantic release (#…
Browse files Browse the repository at this point in the history
…1660)

* build: use PAT on checkout

* build: try not persisting default github token

---------

Co-authored-by: Havard Bjerke <[email protected]>
  • Loading branch information
hkfb and hkfb authored Sep 20, 2023
1 parent 9946258 commit 4bc5e08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
persist-credentials: false
fetch-depth: 0

- name: configure git
run: |
Expand All @@ -26,4 +27,5 @@ jobs:
run: npx nx run-many --target=semantic-release --parallel=false
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4bc5e08

Please sign in to comment.