nwarila/Drift Gate
Detects when files in a consumer repo have drifted from a canonical source. Reports per-file annotations via the GitHub Check Runs API; fails the step if any file differs from its canonical copy.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source-repo | Canonical source to compare against, in "owner/repo" form. | yes | — |
| source-ref | Git ref (SHA, branch, or tag) of source-repo to compare against. SHA pins are strongly recommended for reproducibility. | yes | — |
| manifest | Path within source-repo to the drift manifest (JSON). Defaults to "drift-manifest.json" at the source repo root. | no | drift-manifest.json |
| consumer-ref | Git ref of the consumer to check. Defaults to the PR head SHA when running on pull_request events; otherwise github.sha. | no | "" |
| check-name | Name displayed for the GitHub Check Run. | no | drift-gate / verify |
| github-token | Token used to POST Check Runs to the consumer repo. Defaults to GITHUB_TOKEN. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| passed | "true" if every manifest file is byte-identical with source; "false" otherwise. |