Skip to content

Commit

Permalink
added get-runner-token
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnrobinson committed Mar 7, 2024
1 parent ba4cbe0 commit f71aea7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Generate GitHub App Token
name: Generate Github Runner Token

on:
workflow_dispatch:


jobs:
generate-token:
runs-on: ubuntu-latest
Expand All @@ -12,7 +11,7 @@ jobs:

steps:
- name: Generate GitHub App Token
id: generate
id: auth
uses: ArctiqDemos/github-actions/generate-app-token@main
with:
app_id: 849736
Expand All @@ -24,6 +23,10 @@ jobs:
azure_subscription: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
azure_tenant: ${{ secrets.AZURE_TENANT_ID }}

- name: Get Org Repos
run: |
curl -H "Authorization: Bearer ${{ steps.generate.outputs.token }}" "https://api.github.com/orgs/ArctiqDemos/repos"
- name: Get Runner Registration Token
id: generate
uses: ArctiqDemos/github-actions/generate-runner-token@main
with:
org_name: ArctiqDemos
repo_name: github-actions
github_token: ${{ steps.auth.outputs.token }}
3 changes: 1 addition & 2 deletions generate-app-token/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,5 @@ jobs:

- name: Get Self Hosted Runner Credential
run: |
curl -H "Authorization: Bearer ${{ steps.generate.outputs.token }}" "https://api.github.com/orgs/ArctiqDemos/repos"
curl -H "Authorization: Bearer ${{ steps.generate.outputs.token }}" "https://api.github.com/orgs/ArctiqDemos/repos"
```

0 comments on commit f71aea7

Please sign in to comment.