diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index de19fa02..a776700c 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.generate-token.outputs.github_token }} diff --git a/.github/workflows/update-create-plugin.yml b/.github/workflows/update-create-plugin.yml index 0e0a9272..95ffb825 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.generate-token.outputs.github_token }}