Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ dist/ Compiled JavaScript output.
- Tests use `node:http` `createServer` for API mocking.
- `*.test.ts` files named `moby.test.ts` are integration tests using real PR data.
- Errors from the GitHub API are always `APIError` instances.
- The action never fails a PR — runtime errors are logged, not fatal.
- The action fails on tag/SHA mismatches by default (`fail-on-mismatch` input).
- Runtime errors (API failures, missing repos) are logged, not fatal.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ When the pinned SHA doesn't match the tag in the inline comment:
> | `actions/checkout` | `v6.0.1` | `8e8c483` | `de0fac2` |

This catches typos, stale comments, and copy-paste errors that are impossible to spot in review.
By default, the workflow **fails** when a mismatch is detected.

## Usage

Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:
| Input | Required | Default | Description |
|-------|----------|---------|-------------|
| `github-token` | Yes | `${{ github.token }}` | GitHub token for API access |
| `fail-on-mismatch` | No | `true` | Fail the workflow when a tag/SHA mismatch is detected |

### Permissions

Expand Down Expand Up @@ -135,12 +137,12 @@ repository links or compare URLs.
| Scenario | Action |
|----------|--------|
| Version changes found | Post or update comment with diff summary |
| Tag/SHA mismatch detected | Show warning table at top of comment |
| Tag/SHA mismatch detected | Show warning table, fail the workflow (unless `fail-on-mismatch: false`) |
| No changes | Delete existing bot comment, if any |
| Compare API fails (deleted repo, etc.) | Show warning with manual compare link |
| >15 commits per action | Show last 15, link to full comparison |

The bot never fails a PR — errors are logged, not fatal.
Runtime errors (API failures, missing repos) are logged as warnings, not fatal.

## Development

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: 'GitHub token for API access'
required: true
default: ${{ github.token }}
fail-on-mismatch:
description: 'Fail the workflow when a tag/SHA mismatch is detected'
required: false
default: 'true'
runs:
using: 'node24'
main: 'dist/main.js'
Expand Down
13 changes: 12 additions & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pinverify/verify.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions dist/pinverify/verify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading