You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-31Lines changed: 33 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,10 @@ Verify commit signatures using [Auths](https://github.com/auths-dev/auths) ident
8
8
- uses: actions/checkout@v4
9
9
with:
10
10
fetch-depth: 0
11
-
- uses: auths-dev/auths-verify-github-action@v1
12
-
with:
13
-
allowed-signers: '.auths/allowed_signers'
11
+
- uses: auths-dev/verify@v1
14
12
```
15
13
16
-
That's it. The action auto-detects the commit range from the GitHub event (PR or push), downloads the `auths` CLI, and verifies each commit.
14
+
That's it. The action auto-detects the commit range from the GitHub event (PR or push), downloads the `auths` CLI, and verifies each commit. Identity is auto-detected from the `identity` input (defaults to `.auths/allowed_signers`).
17
15
18
16
## Features
19
17
@@ -31,17 +29,18 @@ That's it. The action auto-detects the commit range from the GitHub event (PR or
31
29
32
30
| Input | Description | Required | Default |
33
31
|-------|-------------|----------|---------|
34
-
| `allowed-signers` | Path to allowed_signers file | No | `.auths/allowed_signers` |
35
-
| `identity-bundle` | Path to identity bundle JSON file (alternative to allowed-signers) | No | `''` |
36
-
| `identity-bundle-json` | Raw identity bundle JSON content (written to temp file automatically) | No | `''` |
32
+
| `identity` | Identity for verification. Accepts: CI token JSON, identity bundle JSON, file path to bundle, or path to allowed_signers file | No | `.auths/allowed_signers` (auto) |
37
33
| `commit-range` | Git commit range to verify (e.g. `HEAD~5..HEAD`) | No | Auto-detected from event |
38
34
| `auths-version` | Auths CLI version to use (e.g. `0.5.0`) | No | `''` (latest) |
39
35
| `fail-on-unsigned` | Whether to fail the action if unsigned commits are found | No | `true` |
40
36
| `skip-merge-commits` | Whether to skip merge commits during verification | No | `true` |
41
37
| `post-pr-comment` | Post a PR comment with results and fix instructions (requires `pull-requests: write`) | No | `false` |
42
38
| `github-token` | GitHub token for posting the PR comment (required when `post-pr-comment: true`) | No | `''` |
39
+
| `artifact-paths` | Glob patterns for artifact files to verify, one per line | No | `''` |
| `fail-on-unattested` | Fail the action if any artifact lacks a valid attestation | No | `true` |
43
42
44
-
> **Note:** `allowed-signers` and `identity-bundle`/`identity-bundle-json` are mutually exclusive. Use one verification mode or the other.
43
+
The `identity` input auto-detects the format. When empty, it defaults to the `.auths/allowed_signers` file. When only `artifact-paths` is set with an identity bundle, commit verification is skipped automatically.
45
44
46
45
## Outputs
47
46
@@ -55,9 +54,11 @@ That's it. The action auto-detects the commit range from the GitHub event (PR or
55
54
56
55
## Verification Modes
57
56
58
-
### Mode 1: Allowed Signers File (default)
57
+
The `identity` input auto-detects the format:
58
+
59
+
### Allowed Signers File (default)
59
60
60
-
Commit the team's public keys to your repo:
61
+
Commit the team's public keys to your repo. When `identity` is empty, the action looks for `.auths/allowed_signers`:
0 commit comments