Skip to content

Commit 6f5aedb

Browse files
authored
Use create-github-app-token in workflows (#529)
1 parent bbf3933 commit 6f5aedb

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

.github/workflows/add-to-project.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,12 @@ jobs:
1616
name: Add issue to project
1717
runs-on: ubuntu-latest
1818
steps:
19-
- id: get-secrets
20-
uses: grafana/shared-workflows/actions/get-vault-secrets@main # zizmor: ignore[unpinned-uses]
19+
- id: get-github-token
20+
uses: grafana/shared-workflows/actions/create-github-app-token@create-github-app-token/v0.2.2
2121
with:
22-
repo_secrets: |
23-
GITHUB_APP_ID=grafana-oss-big-tent:app-id
24-
GITHUB_APP_PRIVATE_KEY=grafana-oss-big-tent:private-key
25-
- name: Generate a token
26-
id: generate-token
27-
uses: actions/create-github-app-token@v1
28-
with:
29-
app-id: ${{ env.GITHUB_APP_ID }}
30-
private-key: ${{ env.GITHUB_APP_PRIVATE_KEY }}
31-
owner: ${{ github.repository_owner }}
32-
- uses: actions/add-to-project@main
22+
github_app: grafana-oss-big-tent
23+
- name: Add to project
24+
uses: actions/add-to-project@main
3325
with:
3426
project-url: https://github.com/orgs/grafana/projects/457
35-
github-token: ${{ steps.generate-token.outputs.token }}
27+
github-token: ${{ steps.generate-token.outputs.github_token }}

.github/workflows/update-create-plugin.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: grafana/plugin-actions/create-plugin-update@main
16+
- id: get-github-token
17+
uses: grafana/shared-workflows/actions/create-github-app-token@create-github-app-token/v0.2.2
18+
with:
19+
github_app: grafana-oss-big-tent
20+
- uses: grafana/plugin-actions/create-plugin-update@create-plugin-update/v2.0.1
21+
with:
22+
token: ${{ steps.generate-token.outputs.github_token }}

0 commit comments

Comments
 (0)