Account-Scheduler: Fix Commit Push permission for forked repos

Forked Projects, by default, can't edit their own forked repos, as the actions token assigned doesn't have sufficient permissions. Using the permission flag grants it the required permission.
This commit is contained in:
Box In a Box 2022-07-20 14:32:30 +05:30 committed by GitHub
parent 01c2d38632
commit 717d0e0cc1
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkouts
uses: actions/checkout@v2
@ -26,4 +27,4 @@ jobs:
git commit -m "KeepALive As of \"${DATE}\""
git remote add origin https://"{USERNAME}":"${GITHUB_TOKEN}"@"${REPO_BASE}"
git checkout -b keepalive
git push --set-upstream origin keepalive -f
git push --set-upstream origin keepalive -f