Skip to content

Commit aefa79d

Browse files
committed
Adds provenance attestation to automated plugin build per Grafana review suggestion.
1 parent d78b85d commit aefa79d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ on:
77
tags:
88
- 'v*' # Run workflow on version tags, e.g. v1.0.0.
99

10-
permissions:
11-
contents: write
12-
1310
jobs:
1411
release:
12+
permissions:
13+
id-token: write
14+
contents: write
15+
attestations: write
1516
runs-on: ubuntu-latest
1617
steps:
1718
- uses: actions/checkout@v4
18-
- uses: grafana/plugin-actions/build-plugin@release
19-
# (For more info on how to generate the access policy token see https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token)
19+
20+
- uses: grafana/plugin-actions/build-plugin@main
2021
with:
21-
# Make sure to save the token in your repository secrets
22+
# see https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token to generate it
23+
# save the value in your repository secrets
2224
policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
25+
# creates a signed build provenance attestation to verify the authenticity of the plugin build
26+
attestation: true

0 commit comments

Comments
 (0)