Skip to content

Commit 3f2c05b

Browse files
authored
Enhance release workflow with Grafana plugin build steps
Added permissions for id-token and attestations in the release workflow. Included steps for building the Grafana plugin with access policy token.
1 parent f125622 commit 3f2c05b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
permissions:
12+
id-token: write
1213
contents: write
14+
attestations: write
1315
actions: write
1416
env:
1517
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }} # Requires a Grafana policy token from Grafana.com.
1618
steps:
1719
- uses: actions/checkout@v4
1820

21+
- uses: grafana/plugin-actions/build-plugin@main
22+
with:
23+
# refer to https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token to generate it
24+
# save the value in your repository secrets
25+
policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
26+
attestation: true
27+
1928
- name: Setup Node.js environment
2029
uses: actions/setup-node@v4
2130
with:

0 commit comments

Comments
 (0)