Skip to content

Commit

Permalink
Add support for Github App auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Oct 10, 2024
1 parent 7f7276b commit 5dc7ce7
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/beta-test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Beta Test

on:
workflow_call:
secrets:
packaging-org-auth-url:
required: true
dev-hub-auth-url:
required: true
gh-email:
required: true
github-token:
required: true
workflow_call:
secrets:
packaging-org-auth-url:
required: true
dev-hub-auth-url:
required: true
gh-email:
required: true
github-token:
required: true
github-app-id:
required: false
github-app-key:
required: false

jobs:
beta-test:
Expand All @@ -25,7 +29,9 @@ jobs:
env:
DEV_HUB_AUTH_URL: "${{ secrets.dev-hub-auth-url }}"
PACKAGING_ORG_AUTH_URL: "${{ secrets.packaging-org-auth-url }}"
CUMULUSCI_SERVICE_github: "{ \"username\": \"${{ github.actor }}\", \"token\": \"${{ secrets.github-token }}\", \"email\": \"${{ secrets.gh-email }}\" }"
CUMULUSCI_SERVICE_github: '{ "username": "${{ github.actor }}", "token": "${{ secrets.github-token }}", "email": "${{ secrets.gh-email }}" }'
GITHUB_APP_ID: "${{ secrets.github-app-id }}"
GITHUB_APP_KEY: "${{ secrets.github-app-key }}"
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -41,5 +47,5 @@ jobs:
- name: Delete Scratch Org
if: ${{ always() }}
run: |
cci org scratch_delete beta
cci org scratch_delete beta
shell: bash

0 comments on commit 5dc7ce7

Please sign in to comment.