Skip to content

Commit 1636dd1

Browse files
Fix attestation permissions for release job (#225)
* add run-name
1 parent a0b6560 commit 1636dd1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ on:
1313
skip-packaging:
1414
description: 'Skip packaging'
1515
type: boolean
16-
16+
17+
run-name: ${{ github.event_name == 'workflow_dispatch' && (inputs.version && format('Publish version:{0} sha:{1}', inputs.version, github.sha) || format('CI sha:{0}', github.sha)) || '' }}
18+
1719
env:
1820
RUNNER_DEV_VERSION: "0.11.x"
1921
RUNNER_SERVER_VERSION: "3.11.16"
2022
jobs:
2123
build:
22-
permissions:
24+
permissions: &permissions
2325
id-token: write
2426
attestations: write
2527
contents: read
@@ -150,6 +152,7 @@ jobs:
150152
create-vendor-archive:
151153
name: Create Archive with all dependencies
152154
runs-on: ubuntu-latest
155+
permissions: *permissions
153156
strategy:
154157
matrix:
155158
include:

0 commit comments

Comments
 (0)