-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 769 Bytes
/
Copy pathtest.yml
File metadata and controls
35 lines (28 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: github-app-auth-action
on:
workflow_dispatch:
permissions:
contents: read
jobs:
github-app-auth-action-main:
name: GitHub App Auth
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v6
- name: Get GitHub App Token
id: auth
uses: step-security/github-app-auth-action@main
with:
creds: ${{ secrets.APP_CREDS_BASE64 }}
export-git-user: false
- name: Verify token
env:
GH_TOKEN: ${{ steps.auth.outputs.token }}
run: |
gh api /installation/repositories \
--jq '.repositories[].full_name'