Repository navigation
Validate fleet's saved scanner credential independently #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| // SPDX-License-Identifier: CC-BY-SA-4.0 | ||
| = Check the saved scanner credential | ||
| :revdate: 2026-11-16 | ||
|
|
||
| Run the manual `Hypatia Security Scan` workflow with | ||
| `credential_read_check` selected to validate this repository's | ||
| `HYPATIA_SCAN_PAT` secret. This mode skips the normal scanner and calls | ||
| Hypatia's pinned credential checker with only that secret. It has a separate | ||
| concurrency group, so a check does not cancel an ordinary scan of the same ref. | ||
| Push, pull-request, scheduled and default manual runs retain the normal scan. | ||
|
|
||
| The checker authenticates, then reads at most one alert from each of | ||
| `hyperpolymath/hypatia`'s Dependabot, code-scanning and secret-scanning | ||
| endpoints. Hypatia is a fixed probe target with all three endpoints enabled. | ||
| The value comes from this caller's secret store. Passing proves this saved | ||
| value can authenticate and read those three endpoints; it does not prove | ||
| fleet's own endpoint availability, estate-wide coverage, absence of alerts | ||
| or write access. A failed or unavailable endpoint fails the check. | ||
|
|
||
| The check does not check out source, execute scanners, publish findings or | ||
| send dispatches. API response bodies are suppressed; secret scanning also | ||
| requests `hide_secret=true`. The callee's dispatch job is skipped, and no | ||
| dispatch secret is passed. Never use `secrets: inherit` for this check. | ||
|
|
||
| For the estate scanner, the intended fine-grained token grants Contents, | ||
| Dependabot alerts, Code scanning alerts and Secret scanning alerts read-only | ||
| under resource owner `hyperpolymath`; Metadata read is automatic. Selecting | ||
| all repositories covers that owner's repositories, not another owner's | ||
| security data. A token's display name does not update an Actions secret: | ||
| replacement values must be installed in each intended secret store. | ||
|
|
||
| The caller is also recorded in `scripts/lib/pinned-reusable-sources.json`, | ||
| with Git blob `15c597ea720a5affb861dab058084f7245ee4cbd` and content SHA-256 | ||
| `645e8ac8ff118c33f2dc941ec46f1abac895f7836339736841c269e4b9dc084d` for the | ||
| pinned checker. Its direct dependency receipt is emitted from those source | ||
| bytes using `audit-lock-closure.sh --emit-receipt`. Fleet's source verifier | ||
| authenticates that source and its edge to harden-runner; the ordinary vendor | ||
| lock remains unchanged because this adds a remote job-level reusable call. | ||
|
|
||
| Live validation on 16 November: run `43836851465` passed the scanner job | ||
| using fleet's saved credential. The normal scan and dispatch jobs were | ||
| skipped. This is the bounded credential-read receipt described above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.