Skip to content

Commit a93b3f9

Browse files
authored
add CI test that exercises auth (#38)
blocked on setting up the identity --------- Signed-off-by: Jason Hall <jason@chainguard.dev>
1 parent de77f6f commit a93b3f9

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/auth.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test with auth
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request_target:
8+
branches:
9+
- 'main'
10+
11+
jobs:
12+
test:
13+
name: Test with auth
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
id-token: write # Needed for auth
19+
20+
steps:
21+
- name: Harden the runner (Audit all outbound calls)
22+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
23+
with:
24+
egress-policy: audit
25+
26+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
27+
- uses: ./
28+
with:
29+
identity: ce2d1984a010471142503340d670612d63ffb9f6/d05d31ba65ec54d1
30+
- run: chainctl auth status

0 commit comments

Comments
 (0)