Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/auth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test with auth

on:
push:
branches:
- 'main'
pull_request_target:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as this repo is public, are we ok having this?

or run just on a post submit?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine. The identity exists, but doesn't have any access grants, so it is pretty low risk.

cc @eslerm FYI

branches:
- 'main'

jobs:
test:
name: Test with auth
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write # Needed for auth

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: audit

- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: ./
with:
identity: ce2d1984a010471142503340d670612d63ffb9f6/d05d31ba65ec54d1
- run: chainctl auth status