Skip to content

Commit

Permalink
fix: using the bot token to check out the repository (#981)
Browse files Browse the repository at this point in the history
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
  • Loading branch information
Skarlso authored Oct 18, 2024
1 parent f35a07f commit bfe6b33
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ jobs:
id-token: write
repository-projects: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OCMBOT_APP_ID }}
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- name: Create Release Branch
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
set -e
git config --global user.name github-actions
Expand Down

0 comments on commit bfe6b33

Please sign in to comment.