Skip to content

Commit

Permalink
ci(autoupdate): use token of service account for pushing to avoid GIT…
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ko committed Nov 13, 2024
1 parent 44924e1 commit d2ce1f3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
jobs:
generate-code:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand Down Expand Up @@ -50,4 +46,6 @@ jobs:
if: steps.check_for_changes.outputs.changes == 'true'
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Here we are not allowed to use GITHUB_TOKEN so release action runs
# see https://github.com/orgs/community/discussions/25702
github_token: ${{ secrets.GH_TOKEN }}

0 comments on commit d2ce1f3

Please sign in to comment.