Skip to content

Commit

Permalink
[Actions] Use TNB app token instead of PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
avano committed Nov 22, 2022
1 parent 76eb47b commit 30675db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/dependencies-diff.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Dependencies diff
on: pull_request_target

env:
GITHUB_TOKEN: ${{ secrets.PAT }}

jobs:
diff:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,10 +42,15 @@ jobs:
run: |
mv ${RUNNER_TEMP}/head head
mv ${RUNNER_TEMP}/base base
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.TNB_APP_APP_ID }}
private_key: ${{ secrets.TNB_APP_PRIVATE_KEY }}
- uses: int128/diff-action@v1
with:
base: base
head: head
comment-header: Dependency changes
token: ${{ env.GITHUB_TOKEN }}
token: ${{ steps.generate-token.outputs.token }}

0 comments on commit 30675db

Please sign in to comment.