Skip to content

ci: migrate release workflow to grafana/plugin-actions/build-plugin#205

Merged
Sh4d1 merged 1 commit into
mainfrom
ci/release-workflow
Jul 20, 2026
Merged

ci: migrate release workflow to grafana/plugin-actions/build-plugin#205
Sh4d1 merged 1 commit into
mainfrom
ci/release-workflow

Conversation

@Sh4d1

@Sh4d1 Sh4d1 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Replaces the hand-rolled release steps (which were an older copy of the same upstream scaffold) with the maintained Grafana action. It performs the identical build/test/package/draft-release flow, plus:

  • signed build provenance attestation on the plugin zip
  • signing via a Grafana access policy token instead of the deprecated API key (requires a new GRAFANA_ACCESS_POLICY_TOKEN repo secret)
  • sha1 checksum instead of md5, matching the current submission form

Replaces the hand-rolled release steps (which were an older copy of the
same upstream scaffold) with the maintained Grafana action. It performs
the identical build/test/package/draft-release flow, plus:

- signed build provenance attestation on the plugin zip
- signing via a Grafana access policy token instead of the deprecated
  API key (requires a new GRAFANA_ACCESS_POLICY_TOKEN repo secret)
- sha1 checksum instead of md5, matching the current submission form

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>

- name: Create Github release
uses: softprops/action-gh-release@v1
- uses: grafana/plugin-actions/build-plugin@build-plugin/v1.2.0

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0afcd1871b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- Paste this [.zip.md5 link](https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive-checksum }}) in the MD5 field

Once done please remove these instructions and publish this release.
policy_token: ${{ secrets.GRAFANA_API_KEY }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the access policy token secret

The new build-plugin action treats policy_token as the Grafana Access Policy Token, and the migration notes for this commit say to create GRAFANA_ACCESS_POLICY_TOKEN; pointing it at the old GRAFANA_API_KEY secret means repositories that follow the migration will pass an empty token here, causing the action to skip signing and publish an unsigned release archive. Wire this input to the new access-policy-token secret instead.

Useful? React with 👍 / 👎.

@Sh4d1
Sh4d1 merged commit 16aca53 into main Jul 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants