Skip to content

Commit b68ba32

Browse files
committed
ci: use releaser app instead of PAT
1 parent 15df337 commit b68ba32

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yaml

+17-1
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,32 @@ jobs:
4141
secrets:
4242
github-token: ${{ secrets.GITHUB_TOKEN }}
4343

44+
create-release-token:
45+
runs-on: ubuntu-24-04
46+
if: ${{ github.event_name != 'pull_request' }}
47+
outputs:
48+
token: ${{ steps.app-token.outputs.token }}
49+
steps:
50+
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
51+
id: app-token
52+
with:
53+
app-id: ${{ secrets.RELEASER_APP_ID }}
54+
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
55+
owner: ${{ github.repository_owner }}
56+
repositories: |
57+
kube-powertools
58+
4459
release:
4560
uses: chgl/.github/.github/workflows/standard-release.yaml@bc38fcaae865b5c200914fdf58239ba902a13842 # v1.8.5
4661
needs:
4762
- build
63+
- create-release-token
4864
permissions:
4965
contents: write
5066
pull-requests: write
5167
issues: write
5268
secrets:
53-
semantic-release-token: ${{ secrets.CI_SEMANTIC_RELEASE_TOKEN }}
69+
semantic-release-token: ${{ needs.create-release-token.outputs.token }}
5470

5571
copy-image-to-dockerhub:
5672
name: copy ghcr.io image to DockerHub

0 commit comments

Comments
 (0)