From b038b64e9c998a536608efbe43c98f4e2006e60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Mon, 17 Nov 2025 23:32:22 +0100 Subject: [PATCH 1/2] Use `create-github-app-token` in workflows --- .github/workflows/add-to-project.yml | 20 ++++++-------------- .github/workflows/update-create-plugin.yml | 8 +++++++- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index de19fa02..25eb3050 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -16,20 +16,12 @@ jobs: name: Add issue to project runs-on: ubuntu-latest steps: - - id: get-secrets - uses: grafana/shared-workflows/actions/get-vault-secrets@main # zizmor: ignore[unpinned-uses] + - id: get-github-token + uses: grafana/shared-workflows/actions/create-github-app-token@create-github-app-token/v0.2.2 with: - repo_secrets: | - GITHUB_APP_ID=grafana-oss-big-tent:app-id - GITHUB_APP_PRIVATE_KEY=grafana-oss-big-tent:private-key - - name: Generate a token - id: generate-token - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ env.GITHUB_APP_ID }} - private-key: ${{ env.GITHUB_APP_PRIVATE_KEY }} - owner: ${{ github.repository_owner }} - - uses: actions/add-to-project@main + github_app: grafana-oss-big-tent + - name: Add to project + uses: actions/add-to-project@main with: project-url: https://github.com/orgs/grafana/projects/457 - github-token: ${{ steps.generate-token.outputs.token }} + github-token: ${{ steps.get-github-token.outputs.github_token }} diff --git a/.github/workflows/update-create-plugin.yml b/.github/workflows/update-create-plugin.yml index 0e0a9272..3c5c4da0 100644 --- a/.github/workflows/update-create-plugin.yml +++ b/.github/workflows/update-create-plugin.yml @@ -13,4 +13,10 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: grafana/plugin-actions/create-plugin-update@main + - id: get-github-token + uses: grafana/shared-workflows/actions/create-github-app-token@create-github-app-token/v0.2.2 + with: + github_app: grafana-oss-big-tent + - uses: grafana/plugin-actions/create-plugin-update@create-plugin-update/v2.0.1 + with: + token: ${{ steps.get-github-token.outputs.github_token }} From cd78ee03cb088d49614b1c678a30d3fe0f42f2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Fri, 21 Nov 2025 10:20:12 +0100 Subject: [PATCH 2/2] Update token retrival path --- .github/workflows/add-to-project.yml | 2 +- .github/workflows/update-create-plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 25eb3050..a776700c 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -24,4 +24,4 @@ jobs: uses: actions/add-to-project@main with: project-url: https://github.com/orgs/grafana/projects/457 - github-token: ${{ steps.get-github-token.outputs.github_token }} + github-token: ${{ steps.generate-token.outputs.github_token }} diff --git a/.github/workflows/update-create-plugin.yml b/.github/workflows/update-create-plugin.yml index 3c5c4da0..95ffb825 100644 --- a/.github/workflows/update-create-plugin.yml +++ b/.github/workflows/update-create-plugin.yml @@ -19,4 +19,4 @@ jobs: github_app: grafana-oss-big-tent - uses: grafana/plugin-actions/create-plugin-update@create-plugin-update/v2.0.1 with: - token: ${{ steps.get-github-token.outputs.github_token }} + token: ${{ steps.generate-token.outputs.github_token }}