Fixing an azuread test where the wrong auth provider is being selected #1883
Workflow file for this run
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: gh-project-integration | |
on: | |
pull_request_target: | |
types: [ opened, reopened, edited, closed ] | |
jobs: | |
rancher_gh_project: | |
permissions: | |
issues: write | |
pull-requests: write | |
repository-projects: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Read secrets | |
uses: rancher-eio/read-vault-secrets@main | |
with: | |
secrets: | | |
secret/data/github/repo/${{ github.repository }}/github/app-credentials appId | APP_ID ; | |
secret/data/github/repo/${{ github.repository }}/github/app-credentials privateKey | APP_PEM | |
- name: Generate Token | |
id: generate-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ env.APP_ID }} | |
private-key: ${{ env.APP_PEM }} | |
- name: script | |
env: | |
GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
PR_PROJECT: ${{ secrets.PR_PROJECT }} | |
run: node .github/workflows/scripts/pr-gh-project.js |