Source design and code parity #153
This file contains 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: Add new issues to CSTI project | |
on: | |
issues: | |
types: | |
- opened | |
jobs: | |
add-to-project: | |
name: Add issue to project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use GitHub App Token | |
uses: wow-actions/use-app-token@d7957e08172ca2e8e49b35b8d266ad585885edc7 #pinned to the hash of v2.0.2 to guarantee immutability | |
id: generate_token | |
with: | |
app_id: ${{ secrets.ADD_TO_PROJECT_APP_ID }} # The ID of the GitHub App | |
private_key: ${{ secrets.ADD_TO_PROJECT_PRIVATE_KEY }} # The private key of the GitHub App | |
fallback: ${{ secrets.GITHUB_TOKEN }} # fall back to the default token if the app token is not available | |
- name: add action | |
uses: actions/[email protected] | |
with: | |
# You can target a repository in a different organization | |
# to the issue | |
project-url: https://github.com/orgs/guardian/projects/61 | |
# A GitHub app token generated by the previous step | |
github-token: ${{ steps.generate_token.outputs.BOT_TOKEN }} |