Skip to content

Commit 0cda751

Browse files
authored
fix release job (#536)
1 parent f7ef787 commit 0cda751

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@ jobs:
4747
with:
4848
egress-policy: audit
4949

50+
- uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
51+
id: octo-sts
52+
with:
53+
scope: ${{ github.repository }}
54+
identity: release
55+
5056
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57+
with:
58+
fetch-depth: 0 # fetch all history for all tags and branches
59+
token: ${{ steps.octo-sts.outputs.token }}
5160

5261
- name: Check if any changes since last tag
5362
id: check
@@ -61,12 +70,6 @@ jobs:
6170
echo "bump=no" >> "$GITHUB_OUTPUT"
6271
fi
6372
64-
- uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
65-
id: octo-sts
66-
with:
67-
scope: ${{ github.repository }}
68-
identity: release
69-
7073
- name: Bump and push Git tag
7174
uses: chainguard-dev/actions/git-tag@f309c81b34d59c103f5b86a2e55a2a647dc8b40a # v1.0.1
7275
if: steps.check.outputs.bump == 'yes'

0 commit comments

Comments
 (0)