Skip to content

Commit

Permalink
chg: swap out local action for GH action and test org settings
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Arnold <[email protected]>
  • Loading branch information
sarnold committed Mar 13, 2024
1 parent df5d5c1 commit 6747bb4
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,36 @@ jobs:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Environment
run: |
bash -c set
- name: Get token
id: get_token
uses: ./ # Uses an action in the root directory
#- name: Get token local action
#id: get_token
#uses: ./ # Uses an action in the root directory
#with:
#APP_PEM: ${{ secrets.VCT_GHT_APP_PEM }}
#APP_ID: ${{ vars.VCT_GHT_APP_ID }}

#- name: Get App Installation Token
#run: |
#echo "This token is masked: ${TOKEN}"
#env:
#TOKEN: ${{ steps.get_token.outputs.app_token }}

- name: Generate GH token
id: generate-token
uses: actions/create-github-app-token@v1
with:
APP_PEM: ${{ secrets.VCT_GHT_APP_PEM }}
APP_ID: ${{ vars.VCT_GHT_APP_ID }}
app-id: ${{ vars.VCT_GHT_APP_ID }}
private-key: ${{ secrets.VCT_GHT_APP_PEM }}

- name: Get App Installation Token
run: |
echo "This token is masked: ${TOKEN}"
- name: Check the GH token
env:
TOKEN: ${{ steps.get_token.outputs.app_token }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
gh api actions-app-token

0 comments on commit 6747bb4

Please sign in to comment.