Skip to content

Commit 6bb2c75

Browse files
feat(ci): use GH App token (#17)
* feat(ci): use GH App token * chore: update .gitignore * feat(ci): use GH App token
1 parent e783516 commit 6bb2c75

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@ jobs:
1717
name: Release version
1818
runs-on: ubuntu-24.04
1919
steps:
20+
- name: Create GitHub App token
21+
uses: actions/create-github-app-token@v2
22+
id: app-token
23+
with:
24+
# required
25+
app-id: 1312871
26+
private-key: ${{ secrets.OPENMCP_CI_APP_PRIVATE_KEY }}
27+
2028
- name: Checkout code
2129
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2230
with:
23-
ssh-key: ${{ secrets.PUSH_KEY }}
31+
token: ${{ steps.app-token.outputs.token }}
2432
fetch-tags: true
2533
fetch-depth: 0
2634
submodules: recursive

.github/workflows/release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ jobs:
1414
name: Release version
1515
runs-on: ubuntu-24.04
1616
steps:
17+
- name: Create GitHub App token
18+
uses: actions/create-github-app-token@v2
19+
id: app-token
20+
with:
21+
# required
22+
app-id: 1312871
23+
private-key: ${{ secrets.OPENMCP_CI_APP_PRIVATE_KEY }}
24+
1725
- name: Checkout code
1826
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1927
with:
20-
ssh-key: ${{ secrets.PUSH_KEY }}
28+
token: ${{ steps.app-token.outputs.token }}
2129
fetch-tags: true
2230
fetch-depth: 0
2331
submodules: recursive

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ go.work
2525
*.swp
2626
*.swo
2727
*~
28+
29+
*.html

0 commit comments

Comments
 (0)