Skip to content

Commit 1a4440a

Browse files
authored
chore: switch to gh apps user (#26)
Signed-off-by: Michele Dolfi <[email protected]>
1 parent 891530f commit 1a4440a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,19 @@ jobs:
4747
runs-on: ubuntu-latest
4848
concurrency: release
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/create-github-app-token@v1
51+
id: app-token
52+
with:
53+
app-id: ${{ vars.CI_APP_ID }}
54+
private-key: ${{ secrets.CI_PRIVATE_KEY }}
55+
- uses: actions/checkout@v4
5156
with:
52-
token: ${{ secrets.GH_PAT }}
57+
token: ${{ steps.app-token.outputs.token }}
5358
fetch-depth: 0 # for fetching tags, required for semantic-release
5459
- uses: ./.github/actions/setup-poetry
5560
- name: Run release script
5661
env:
57-
GH_TOKEN: ${{ secrets.GH_PAT }}
62+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
5863
TARGET_VERSION: ${{ needs.pre-release-check.outputs.TARGET_TAG_V }}
5964
CHGLOG_FILE: CHANGELOG.md
6065
run: ./.github/scripts/release.sh

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Run CI"
22

33
on:
44
pull_request:
5-
types: [opened, reopened, synchronize, ready_for_review]
5+
types: [opened, reopened]
66
push:
77
branches:
88
- "**"

0 commit comments

Comments
 (0)