Skip to content

Commit

Permalink
ci(actions): make sure the GitHub Actions workflows will use the corr…
Browse files Browse the repository at this point in the history
…ect token
  • Loading branch information
robinwalterfit committed Oct 27, 2024
1 parent f214729 commit 1ffa61c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
id: ml
uses: oxsecurity/megalinter/flavors/ci_light@v8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/[email protected]
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
- name: Configure Git
run: |
git config --global user.name GitHub Actions
Expand All @@ -26,5 +26,5 @@ jobs:
version: 0.13.0
- run: knope prepare-release --verbose
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GITHUB_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
version: 0.13.0
- run: knope release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GITHUB_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}

0 comments on commit 1ffa61c

Please sign in to comment.