Skip to content

Commit

Permalink
Merge pull request #838 from mrapp-ke/use-token-app
Browse files Browse the repository at this point in the history
Use Github app for generating tokens
  • Loading branch information
mrapp-ke authored Apr 21, 2024
2 parents f45f191 + 471dc2a commit 756f94e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test_file_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ jobs:
test-file-changes-cache-git
- name: Checkout
uses: actions/checkout@v4
- name: Generate token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.TOKEN_APP_ID }}
private-key: ${{ secrets.TOKEN_APP_SECRET }}
- name: Prevent disallowed file changes
uses: xalvarez/prevent-file-change-action@v1
with:
githubToken: ${{ secrets.ACTIONS_TOKEN }}
githubToken: ${{ steps.app-token.outputs.token }}
pattern: ^VERSION.dev$
allowNewFiles: true
- name: Save Git repository to cache
Expand Down

0 comments on commit 756f94e

Please sign in to comment.