Skip to content

Commit 05a98eb

Browse files
authored
Change the actions to auth as an app (#115)
## What was changed Change the action to auth as an app. ## Why? Can't let the action bypass branch protection rules while it's just using an action token, so use the CI/CD app to do the CI/CD thing without needing to sign commits and do a PR. ## Checklist <!--- add/delete as needed ---> 1. Closes <!-- add issue number here --> 2. How was this tested: <!--- Please describe how you tested your changes/how we can test them --> 3. Any docs updates needed? <!--- update README if applicable or point out where to update docs.temporal.io -->
1 parent e9817fa commit 05a98eb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/helm.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ jobs:
1717
release:
1818
runs-on: ubuntu-latest
1919
steps:
20+
- name: Generate token
21+
id: generate_token
22+
uses: actions/create-github-app-token@v2
23+
with:
24+
app-id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
25+
private-key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
26+
owner: ${{ github.repository_owner }}
27+
2028
- name: Checkout
2129
uses: actions/checkout@v4
2230
with:
31+
token: ${{ steps.generate_token.outputs.token }}
2332
fetch-depth: 0
2433

2534
- name: Configure Git

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,19 @@ jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414
steps:
15+
16+
- name: Generate token
17+
id: generate_token
18+
uses: actions/create-github-app-token@v2
19+
with:
20+
app-id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
21+
private-key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
22+
owner: ${{ github.repository_owner }}
23+
1524
- name: Checkout
1625
uses: actions/checkout@v4
1726
with:
27+
token: ${{ steps.generate_token.outputs.token }}
1828
fetch-depth: 0
1929

2030
- name: Set up Go

0 commit comments

Comments
 (0)