Skip to content

Commit eb40eeb

Browse files
authored
Use GitHub App for auto-release workflow
1 parent 5459c04 commit eb40eeb

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/dependabot-auto-release.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
required: true
1212
default: false
1313

14-
permissions:
15-
contents: write
16-
pull-requests: write
17-
1814
jobs:
1915
release:
2016
name: Create release with auto-updates
@@ -26,8 +22,18 @@ jobs:
2622
fetch-depth: 0
2723
fetch-tags: true
2824

25+
- name: Create access token
26+
uses: actions/create-github-app-token@v1
27+
id: app-token
28+
with:
29+
app-id: ${{ vars.GH_APP_ID }}
30+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
31+
owner: "kereis"
32+
repositories: |
33+
traefik-certs-dumper
34+
2935
- name: Authenticate GitHub CLI
30-
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
36+
run: echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token
3137

3238
- name: Make sure diff contains dependency updates only
3339
id: deps_only_check
@@ -86,7 +92,6 @@ jobs:
8692
8793
- name: Create new release
8894
env:
89-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9095
NEW_VERSION: ${{ steps.new_version_tag.outputs.NEW_VERSION }}
9196
RELEASE_BRANCH: ${{ steps.create_release_branch.outputs.RELEASE_BRANCH }}
9297
run: |

0 commit comments

Comments
 (0)