Skip to content

Commit

Permalink
Fix add to project workflow (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanbedi authored Jan 16, 2025
1 parent 0adcde3 commit a324253
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,29 @@ on:
issues:
types:
- opened

permissions:
contents: read
id-token: write

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
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: ${{ secrets.GITHUB_APP_ID }}
private-key: ${{ secrets.GITHUB_APP_PRIVATE_KEY }}
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/grafana/projects/457
github-token: ${{ secrets.ISSUE_COMMANDS_TOKEN }}
github-token: ${{ steps.generate-token.outputs.token }}

0 comments on commit a324253

Please sign in to comment.