secmon signing #12102
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[Bot] add to GitHub project" | |
on: [issues, pull_request] | |
permissions: | |
contents: read | |
pull-requests: write | |
issues: write | |
repository-projects: write | |
jobs: | |
project-add-pull-request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate GitHub App token | |
id: trezor-bot-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.TREZOR_BOT_APP_ID }} | |
private-key: ${{ secrets.TREZOR_BOT_PRIVATE_KEY }} | |
- name: Add new pull request to the Firmware project | |
uses: actions/add-to-project@main | |
if: github.event_name == 'pull_request' && github.event.action == 'opened' | |
with: | |
project-url: https://github.com/orgs/trezor/projects/60 | |
github-token: ${{ steps.trezor-bot-token.outputs.token }} | |
project-add-issue: | |
name: Add new issue to the Firmware project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate GitHub App token | |
id: trezor-bot-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.TREZOR_BOT_APP_ID }} | |
private-key: ${{ secrets.TREZOR_BOT_PRIVATE_KEY }} | |
- uses: actions/add-to-project@main | |
if: github.event_name == 'issues' && github.event.action == 'opened' | |
with: | |
project-url: https://github.com/orgs/trezor/projects/60 | |
github-token: ${{ steps.trezor-bot-token.outputs.token }} |