Skip to content

Commit 99fb31d

Browse files
committed
chore: fixing permissions error
1 parent 86b1cee commit 99fb31d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/synchronize-snyk-variants.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
schedule:
88
- cron: '0 3 1 * *'
99

10+
permissions:
11+
contents: write
12+
1013
env:
1114
DESTINATION_BRANCH: auto/synchronize-snyk-variants
1215
COMMIT_MESSAGE: 'fix: synchronize actions with the snyk-images repository'
@@ -20,6 +23,7 @@ jobs:
2023
uses: actions/checkout@v4
2124
with:
2225
fetch-depth: 0
26+
token: ${{ secrets.TEAM_CLI_BOT_GITHUB_PAT }}
2327

2428
- name: Configure Git user
2529
run: |
@@ -77,6 +81,8 @@ jobs:
7781
7882
- name: Commit and push changes (if any)
7983
if: steps.check_changes.outputs.continue == 'true'
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.TEAM_CLI_BOT_GITHUB_PAT }}
8086
run: |
8187
git add .
8288
git commit -S -m "${{ env.COMMIT_MESSAGE }}"

0 commit comments

Comments
 (0)