Skip to content

Commit 43fa260

Browse files
committed
ci(github-actions): use create-github-app-token to generate semantic release token
1 parent 6aa0204 commit 43fa260

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release
22
on:
33
workflow_dispatch:
4+
inputs:
5+
dry-run:
6+
type: boolean
7+
description: Dry Run
8+
default: false
9+
required: false
410
push:
511
branches:
612
- main
@@ -17,20 +23,20 @@ jobs:
1723
steps:
1824
- name: Create GitHub App Token
1925
id: app-token
20-
uses: actions/create-github-app-token@v1
26+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
2127
with:
2228
app-id: ${{ secrets.APP_ID }}
2329
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2430
- name: Checkout repository
2531
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2632
with:
27-
persist-credentials: false
2833
token: ${{ steps.app-token.outputs.token }}
2934
- name: Semantic Release
3035
uses: cycjimmy/semantic-release-action@cb425203a562475bca039ba4dbf90c7f9ac790f4 # v4.1.0
3136
env:
3237
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3338
with:
39+
dry_run: "${{ inputs.dry-run }}"
3440
semantic_version: 24.1.1
3541
extra_plugins: |
3642
- conventional-changelog-conventionalcommits@8.0.0

0 commit comments

Comments
 (0)