Repository navigation
Workflow dast
What it does. security.yml reads code; dast.yml is the check that talks to a running service. It starts the service your
repository serves (a dashboard, an API, a docs server) on loopback and runs one of OWASP ZAP's three
packaged scans against it, chosen by scan-type, failing the job when a finding reaches fail-on. Findings go to the Security
tab under category zap (or sarif-category), tagged with the scan type; the HTML, Markdown, JSON and SARIF reports are an
artifact. A repository with no service has nothing to call it for.
scan-type |
What ZAP does | What it finds | What it cannot find |
|---|---|---|---|
baseline (default) |
Spiders the service and runs the passive rules over every response. No attack traffic | Missing or weak security headers, cookies without flags, server banners, information leaking in responses | Anything the server does with its input |
full |
The baseline, then ZAP's active rules against every URL and parameter the spider found | Reflected and persistent cross-site scripting, SQL and command injection, path traversal, remote file inclusion and the rest of the active rules, plus everything the baseline finds | Operations no link reaches; anything behind a login unless context-file and context-user sign the scan in |
api |
Imports api-definition (OpenAPI, SOAP or GraphQL), sends every operation with the parameters it declares, runs the active rules of the API-Minimal policy and alerts on unexpected status codes and content types |
The same classes of hole in an API, including operations no page links to, since the definition is the map | Operations the definition leaves out |
Why it exists. The stack had SAST, secrets, dependency, container and workflow scanning and nothing that looked at a service the way a client sees it: missing security headers, cookies without flags, a server banner. That was the baseline, part of issue #97. The full and api scans came next because the baseline, by design, cannot see the holes that matter most: a page that reflects its query unescaped has perfect headers and passes it. Static analysis finds some of those; the active scan finds them by doing what an attacker does, against the running code, and is the one check here with no static substitute.
Start with baseline and get it to pass at medium; its findings are the ones a reverse proxy fixes in an afternoon. Then switch
to full, with active-scan-minutes and timeout-minutes set together. Give an API its own call with scan-type: api, a
second artifact-name and a second sarif-category, so the two uploads do not close each other's alerts.
The anonymous spider reaches what a link on a public page reaches. A form login in front of the rest stops it, and the pages
behind a login are where an application keeps most of what is worth attacking. context-file and context-user pass ZAP's
own -n and -U: the repository keeps a ZAP context (the URLs in scope, the login method, the users), exported from ZAP and
committed, and context-user names which of its users to scan as. The spider signs in as that user, and for full so does the
active scan, so the active rules reach the pages and parameters behind the login. -U without -n is refused, since a user
lives in a context, and so is a user the context does not hold, before the service starts, so a typo cannot become an
anonymous scan that passes.
All three scan types take them. This was decided by reading the scripts in the pinned image, not by assumption:
zap-baseline.py, zap-full-scan.py and zap-api-scan.py each accept -n and -U, load the context before the first
request and look the user up in it, and the shared zap_common.py runs the spider as that user (spider.scan_as_user, and the
AJAX and client spiders the same way) and the active scan as that user. So the baseline's passive rules see the signed-in pages
too, and nothing is refused by scan type. A live test shows it rather than trusting the read: the baseline over the login
fixture without its headers alerts on /account only when given the context and the user.
What goes in the context file matters more than the scan, because ZAP sends the user's credentials to the URLs the file names.
- The credentials are a throwaway account's. The file is committed, so what it holds is public to everyone who can read the repository. The service is the one this job starts on loopback, with a recorded dataset, so the account opens nothing real. A credential that opens anything else does not belong in a context file; this workflow has no input for a secret, on purpose.
-
The port in it must match
target-url. A context names its login URL in full; a mismatch is a scan that never signs in. -
The indicators are yours to get right. The logged-in indicator is how the scan tells a signed-in response from a signed-out one (see the proof
below): text only a signed-in response has. The fixture's matches the login's own redirect to
/accountand the "Signed in as" text of the pages behind it. ZAP also checks every response against the logged-out indicator, and a hit makes it sign in again; the fixture's matches the redirect to/loginand the sign-in page and nothing a signed-in session sees. A logged-in indicator that the login's own redirect does not carry can make ZAP count every sign-in as failed and shut itself down; that happened while this was being built.
The guard is a step that runs before the service starts. It parses the file as XML, never with a pattern: CDATA, character
references and entities hide a URL from a pattern over the text (an earlier version of the guard was a grep, and
<loginurl><![CDATA[https://example.com/login]]></loginurl> matched nothing). It refuses the file unless:
- it declares no DOCTYPE or entity, is UTF-8 and holds exactly one
<context>, and no element the guard reads has child elements inside it. ZAP's configuration reader returns only an element's own text, so<loginurl>http://<x>127.0.0.1:8080/</x>evil.example/login</loginurl>reads as loopback to a parser that joins the children and ashttp://evil.example/loginto ZAP (measured with ZAP 2.17.0's own reader in the security review). The guard reads exactly the element's own text and refuses mixed content; - every
loginurl,loginpageurlandpollurl, decoded, is an absolutehttporhttpsURL whose host is loopback once normalised:localhost, an address in127.0.0.0/8, or::1. Case is normalised, soHTTP://LocalHost:8080passes. Decimal, octal, hex and short IPv4 (2130706433,0x7f.0.0.1,0177.0.0.1,127.1),0.0.0.0,::, IPv4-mapped IPv6, zone ids,localhost.and look-alikes such as127.0.0.1.evil.exampleare refused: a resolver may accept them, so the check does not; - none of those URLs has user information (
http://127.0.0.1@evil.example), a fragment, a backslash, whitespace (parsers disagree about them) or a${...}interpolation (ZAP expands them), a{%username%}or{%password%}token, a query parameter named like a credential, or a user's credential in it. ZAP substitutes the tokens into a login URL, which would put the credential in the URL and in every log and report that records it; they belong inloginbody, the POST body; - the authentication is manual (type 0), form-based (2) or JSON-based (5), with only the elements ZAP's export writes. HTTP, script, browser-based and auto-detect authentication can sign in at hosts or run code the guard cannot read, so they are refused rather than let through, as is session management other than cookies. These are the type numbers of ZAP 2.17.0, read from an export of each;
- every
incregexesentry fits a whitelist grammar, because Java matches the whole URL against it (Context.isInContextin the 2.17.0 jar) and anything loose is a second scope: an escaped loopback origin (dots as\., IPv6 as\[::1\]; an unescaped dot is a wildcard, sohttp://127.0.0.1:8080/.*matcheshttp://127505051:8080/x, and an unescaped[::1]is a character class), an optional port of digits, then the end or a literal/, literal path characters (letters, digits,-,_,~,/,\.) and at most one trailing.*or$.http://127\.0\.0\.1:8080andhttp://127\.0\.0\.1:8080/.*pass. Anything else is refused as a form the guard cannot prove safe, and the message says so and shows the form to use./?.*and/*.*make the slash optional, so they matchhttp://127.0.0.1:8080@evil.example/x, as does:8080.*; ZAP's own default\Q...\E.*is refused too. No other quantifier, group, class or alternation; - when
context-useris set, the context holds a user of that name. A context with no users at all is refused.
The bytes the guard validated are the bytes ZAP is given: the guard copies them to the runner's temporary directory with their SHA-256, and the scan step copies and checks that file, never the path in the workspace, which the install and start commands run after the guard and could have rewritten. This is not a lock: the start command runs with access to the context, so treat its credentials as visible to it. A background process of the caller can still swap the file between the digest check and the copy (measured: a loop writer got 28 of 300 hand-offs through), and such a process could read the throwaway credentials directly, so the swap adds no exposure. It closes the install and start commands rewriting the file, not hostile concurrent caller code.
An error names the element and the rule and never prints the value it refused, because the value may be the credential.
The users' names and credentials are masked in the job log in every shape they take (raw, URL-encoded, HTML-escaped,
JSON-escaped, base64), each escaped the way the runner reads a workflow command (% as %25, a line break as %0D or %0A),
so a password that contains %0A is masked as itself and not as a newline; a credential with a real line break is refused. A step that runs whether or not the scan passed then removes them from report.json, report.html,
report.md and the SARIF before the report step builds the summary and before the artifact upload, and deletes the copy of the
context file from the work directory. If it cannot redact and check, it deletes the reports instead of uploading them. The JSON reports
are redacted by value after parsing and never by key, so a password that equals a report key (alerts) cannot rename the key
and turn the fail-on gate green; a report that does not parse is deleted. A credential
that is a slice of the [redacted] placeholder (redacted) is redacted in one pass and checked with the placeholder removed, so
it does not fail the job. A value
under four characters cannot be redacted without mangling the reports, so such a context is refused. The summary says a scan
was signed in, not as whom.
ZAP's scripts select the user and never check that it signed in, so wrong credentials, a wrong login URL or a wrong indicator
still produce a green scan of the public pages. A first version of this check accepted any recorded response that matched the
logged-in indicator, and that was not enough: a login answers with the redirect the indicator looks for even when the session
cookie is then unusable (a Path that never covers the protected page), so every later request is anonymous and the scan still
looked verified. The check now asks a protected page.
context-user requires auth-check-url, a page only a signed-in user reaches, such as a profile or account page on target-url.
- Before the scan, the context must have a form-based or JSON-based login with a login URL and at least one of a logged-in or
logged-out indicator (neither may match an empty response).
auth-check-urlis held to the rules of every URL above, is on the origin oftarget-url, is inside the context's include regexes, and is not the login, login-page or poll URL. Manual or missing authentication, noauth-check-url, andauth-check-urlwithoutcontext-userare refused. - The scan step adds a small ZAP hook (
--hook, which all three scripts take). Before the attack phase (before the spider, and again before the active scan) and once more after the scan, it has ZAP requestauth-check-urlthrough its own session handling, as the selected user (forced-user mode, switched off again right after) and, before the attack phase, with no user. ZAP's regex search then judges exactly those recorded responses with the context's indicators. - The scan is verified only if the user's response is signed in at every check and the anonymous one never is. A login response, or any response that merely matches an indicator somewhere in ZAP's history, counts for nothing.
- Any failed, missing or erroring check fails the job. The message names the check (as the user before the attack, with no user,
or after the scan) and the likely causes: wrong credentials, a wrong login URL or body, a cookie whose Path or Domain does not
cover the page, a session the scan invalidated (a logout URL that is not excluded), or a wrong indicator. The summary line and
the
zap-authenticatedSARIF tag come from this result only.
Why not ZAP's stats.auth.* counters: no success or failure counter appeared for form-based authentication in the runs here; a
good and a bad login dumped the same keys. What the check cannot prove is that the indicator is a good one, or that the page you
name is as protected as the rest: choose one that needs the same session. The tests run it live against the fixture. The right
credentials are verified. Wrong credentials, a wrong login URL, an indicator no page contains and a login whose cookie the
protected page never receives (--broken-session) all fail, and a manual login fails before the scan.
The guard is static, and egress-policy: block is the request-time control; the workflow does not require it for context-file.
ZAP's own requests are fixed by the context: it signs in only at the vetted URLs, spiders only what the vetted include regexes
allow and attacks only target-url. What the guard cannot see is the service redirecting off host. That service is the
caller's own code, which already runs in this job with the same network, so it needs no ZAP to reach out, and block is the
control for it (this repository's own fixture dast job runs under block). Requiring block for context-file would make
the feature unusable on the default and add no check that has been measured: harden-runner's enforcement on a container with
host networking was not measured here. Use block for a signed-in scan. A test pins that both policies pass the same static
check.
HTTPS targets. Signed-in scans of an https:// loopback target work as of v1.16.0 (#131): the sign-in probe sends the complete
absolute URL in its request line, so ZAP keeps the scheme and port. That shipped in v1.16.0; through v1.15.0 an https://
target failed closed (#129).
What it cannot do: sign in through a login ZAP's authentication methods do not cover, or reach a deployed environment. That stays refused with every other host that is not loopback; see the Roadmap.
| Job | Holds | Notes |
|---|---|---|
scan |
contents: read |
Runs your install and start commands and the ZAP image, like a test job. No token reaches the container |
upload |
security-events: write |
Checks nothing out and runs no shell. Skipped on a pull request from a fork, and with upload-sarif: false
|
-
Loopback only, and the active scans are why. The
fullandapiscans send attack payloads. Atarget-urlor anapi-definitionURL that is not127.0.0.1,localhostor[::1]is refused before anything starts, so a typo cannot aim an attack at someone else. Foropenapithe definition'sserversare overridden withtarget-url, so a definition that names production still scans the loopback service;soapandgraphqltake the definition's own addresses, which must be loopback. -
The image, not an action.
zaproxy/action-baseline,action-full-scanandaction-api-scanuse the moving tagstable, file issues with the job's token and have no SARIF. The workflow runs the same image pinned by digest, with-silentso ZAP reaches nothing of its own: underblockthe allow-list is the image pull and GitHub. No action joins the allow-list for it. -
fail-onis a risk level. A page with no security headers is Medium, so the defaulthighdoes not catch it; usemediumfor that. A reflected cross-site scripting hole is High, so the default catches it in afullorapiscan. Accept a finding in.zap/rules.tsv(IGNOREplus a reason), never by raising the threshold. -
A bounded active scan.
active-scan-minutesis ZAP's own maximum scan duration;0is no limit. A large service with many parameters can keep the active rules busy for a long time, so set it, and raisetimeout-minutesto match.
Proving it can fail is part of the workflow's tests, one proof per scan type, and one for the login. fixture/dast/server.py serves a page with its
security headers (the baseline must pass), without them (--insecure: the baseline must fail at medium, pass at high), and
with a /search that echoes its query unescaped (--vulnerable: the baseline must pass, because nothing in the headers is
wrong, and the full scan must fail at high naming the cross-site scripting). It also serves a small JSON API with an OpenAPI
definition whose server is a host that does not exist, so the api scan can only find anything if the workflow redirected it to
loopback. With --login the server adds a form login with throwaway credentials and, only behind it, the same unescaped echo
at /account/search; the public pages stay escaped. The full scan with no context passes that service at high, and the same
scan with fixture/dast/login.context and context-user: throwaway fails at high naming the cross-site scripting. Both
halves are tests, because a check that only passes proves nothing. So is every way a context can hide an off-host URL or put a
credential in one: each is a refused case, and the refusal is checked to print nothing it refused. tests/test_dast.py runs the job's steps against canned reports and against a fake docker that records which ZAP
script and flags each scan-type produces, and this repository's dast-live CI job runs all of it against the real image.
The runs-on input is a JSON string that every job reads through fromJSON(inputs.runs-on), because runs-on takes a
string, an array or an object: '"ubuntu-24.04"' (the default), '["self-hosted","linux"]' or
'{"group":"my-group","labels":["linux"]}'. Nothing can validate it before runs-on resolves, so invalid JSON fails the job
at expression time. A job that follows egress-policy-secretless reaches audit only on a GitHub-hosted runner with a label
in the hosted list of EX-0001, so every other runner gets block. On a self-hosted runner step-security/harden-runner needs
a StepSecurity Enterprise subscription; without one it is a no-op, so block is not enforced there (verified against its
README on 2026-11-25; the workflow header has the details).
A step right after harden-runner in every job enforces the trust domain: on any runner that is not GitHub-hosted the job fails unless
allow-self-hosted: true, which is the caller's attestation that the runner is ephemeral, one job per VM, and isolated from
secrets and the network. Even then, a self-hosted runner takes only push, schedule, workflow_dispatch, release and
same-repository pull_request events; merge_group, workflow_run, issue_comment, pull_request_target, a fork's pull
request, a pull request with an unnamed head repository and any unknown event fail. This keeps out code from outside the
repository's own writers; it does not isolate the runner, so a persistent runner must not be shared with a job that holds OIDC
or Doppler access. Secret-bearing jobs belong on GitHub-hosted runners or a distinct ephemeral trusted pool.
The pinned digests and the mutation tests (tests/test_runs_on_input.py) catch accidental and partial changes to the egress
policy check and the self-hosted guard. A change that edits a guarded script and its pinned digest together is stopped only by
review, which is what .github/CODEOWNERS is for. Branch protection does not yet require code-owner review, so until it does
that review is a convention, not an enforced rule.
jobs:
dast:
uses: ChiefGyk3D/git-your-ship-together/.github/workflows/dast.yml@<sha> # vX.Y.Z
permissions:
contents: read
security-events: write # the SARIF upload; omit with upload-sarif: false
with:
install-command: pip install .
start-command: myapp serve --port 8080
target-url: http://127.0.0.1:8080
scan-type: full # baseline (default), full or api
fail-on: mediumAnd for the API the same service exposes:
dast-api:
uses: ChiefGyk3D/git-your-ship-together/.github/workflows/dast.yml@<sha> # vX.Y.Z
permissions:
contents: read
security-events: write
with:
install-command: pip install .
start-command: myapp serve --port 8080
target-url: http://127.0.0.1:8080
scan-type: api
api-definition: openapi/myapp.yaml # or http://127.0.0.1:8080/openapi.json
fail-on: medium
artifact-name: zap-api-reports
sarif-category: zap-apiAnd the pages behind the login, signed in as a throwaway user of the same service:
dast-signed-in:
uses: ChiefGyk3D/git-your-ship-together/.github/workflows/dast.yml@<sha> # vX.Y.Z
permissions:
contents: read
security-events: write
with:
install-command: pip install .
start-command: myapp serve --port 8080 --seed-test-user
target-url: http://127.0.0.1:8080
scan-type: full
context-file: .zap/app.context # exported from ZAP, committed; throwaway credentials only
context-user: scan-user
auth-check-url: http://127.0.0.1:8080/account # a page only a signed-in user reaches
fail-on: medium
artifact-name: zap-signed-in-reports
sarif-category: zap-signed-inInputs (27), read from dast.yml:
| Input | Type | Default | Meaning |
|---|---|---|---|
start-command |
string | required | Shell command that starts the service under test. It may block (it is run in the background by the workflow) or start the service itself and return. It runs after install-command, in the repository root, and must serve on target-url. (required) |
target-url |
string | http://127.0.0.1:8080 |
Base URL of the service. Must be loopback (127.0.0.1, localhost or [::1]); any other host is refused. |
ready-path |
string | / |
Path requested until the service answers 2xx or 3xx, before the scan starts. A service that never answers within ready-timeout-seconds fails the job. |
ready-timeout-seconds |
number | 60 |
How long to wait for ready-path to answer. |
rules-file |
string | empty | Optional ZAP baseline rules file (tab-separated <rule id> IGNORE|INFO|WARN|FAIL <comment>, usually .zap/rules.tsv) for findings the repository accepts. An IGNOREd rule is dropped from the report and the SARIF; a rule set to FAIL fails the job whatever fail-on says. Empty uses ZAP's defaults. |
fail-on |
string | high |
Lowest risk that fails the job - high, medium, low, informational or none (report only). A page with no security headers is Medium (no CSP, no anti-clickjacking header), so high does not catch it; set medium to catch it. |
scan-type |
string | baseline |
Which ZAP scan runs - baseline (spider and passive rules, no attack traffic), full (baseline plus ZAP's active rules against everything the spider found) or api (active rules against the operations of api-definition; no spider). The full and api scans send attack traffic, which is why the target must be loopback. |
spider-minutes |
number | 1 |
Longest the spider runs (-m, for baseline and full). It stops sooner when it has followed every link. Not used by api, which has no spider. |
ajax-spider |
boolean | false |
Also run ZAP's AJAX spider (a headless browser that clicks through the page) after the traditional one, for baseline and full. A page whose links are built by JavaScript needs it; a server-rendered one does not. Slower, and not used by api. |
active-scan-minutes |
number | 0 |
Longest the active scan runs (ZAP's scanner.maxScanDurationInMins), for full and api. 0 is no limit, which on a large service can outlast timeout-minutes; set both together. |
api-definition |
string | empty | For scan-type api only. For openapi and soap, the definition - a file in the repository (openapi/spec.yaml) or a loopback URL the service serves it at (http://127.0.0.1:8080/openapi.json). For graphql, the loopback URL of the endpoint, which must answer introspection. The scan refuses anything else and refuses this input with any other scan-type. |
api-format |
string | openapi |
Format of api-definition - openapi, soap or graphql. For openapi the definition's servers are overridden with target-url, so a definition that names the production host still scans the loopback service; soap and graphql take the definition's own addresses, which must be loopback too. |
context-file |
string | empty | Optional ZAP context file in the repository (an export from ZAP's desktop or API, usually .zap/app.context), loaded before the scan with ZAP's -n. It names the URLs in scope, the login method and the users, so the scan can sign in. For all three scan types. It is parsed as XML and refused unless every URL ZAP could sign in at (login, login page, poll) is loopback after decoding and normalising, none carries user information, a credential or a token, the authentication is manual, form-based or JSON-based, and its include regexes start at a loopback origin. The credentials in it are those of a throwaway account of the service this job starts, never a real one, because the file is committed; they are masked in the log and redacted from the reports. The install and start commands run with access to the file, so treat its credentials as visible to them. Empty scans anonymously. |
context-user |
string | empty | Which user of context-file to scan as (ZAP's -U, the user's name in the context). The spider, and for full the active scan, run signed in as this user. Refused without context-file, when the context holds no user of that name (a typo cannot become an anonymous scan that passes), and when the context has no form-based or JSON-based login with a login URL and a logged-in indicator. The job fails unless ZAP's own search finds a recorded response that matches the logged-in indicator, so wrong credentials, a wrong login URL or an indicator no signed-in page contains fail instead of passing as a scan of the public pages; the summary and the zap-authenticated SARIF tag come from that verified result only. Empty scans anonymously, with the context's scope only. |
auth-check-url |
string | empty | For a signed-in scan, a URL that only a signed-in user can reach (a profile or account page, not the login page). Required with context-user, refused without it. It must be loopback, on the origin of target-url, inside the context's include regexes, and not the context's login, login-page or poll URL. Before the attack phase (before the spider, and again before the active scan) and again after the scan, ZAP requests it twice through its own session handling, as the selected user and with no user. The scan is verified only if the user's response looks signed in by the context's indicators every time and the anonymous one never does; otherwise the job fails, so wrong credentials, a session cookie the protected pages never receive (a wrong cookie Path or Domain), a session the scan itself invalidated (a logout URL that is not excluded) and a wrong indicator all fail instead of passing as a scan of the public pages. Empty is for an anonymous scan. |
python-version |
string | empty | Python to set up before install-command. Empty skips the step, for a service that needs none. |
install-command |
string | empty | Shell command that installs the service under test (and anything it needs), run before start-command. Empty skips it. |
upload-sarif |
boolean | true |
Upload the findings to the Security tab under sarif-category. Needs the caller to grant the security-events write permission, and code scanning to be available (a private repository needs GitHub Advanced Security). Never on a pull request from a fork, whose token cannot write. |
sarif-category |
string | zap |
Code scanning category of the upload. Alerts from an earlier upload under the same category that the new one lacks are closed, so two scans in one repository (a full of the pages and an api of the API) need two categories, or each run closes the other's alerts. |
artifact-name |
string | zap-reports |
Name of the artifact holding the HTML, Markdown, JSON and SARIF reports. Artifact names are unique per run, so a caller that runs this workflow twice in one workflow run names them apart. |
egress-policy |
string | audit |
harden-runner egress policy - audit logs outbound connections, block allows only allowed-endpoints and extra-allowed-endpoints. Jobs that hold no secret follow egress-policy-secretless instead (EX-0001). |
egress-policy-secretless |
string | block |
harden-runner egress policy for the jobs that hold no stored secret, no OIDC token and no write-scoped or publish-capable token (read-only contents, a SARIF upload at most), and whose output no privileged job consumes - exactly audit or block. Defaults to block since security exception EX-0001 (GitHub-hosted runners in westus2 broke harden-runner block) was closed on 2026-11-02 after harden-runner v2.22.3 passed on westus2; see docs/security/exceptions/. Every job still has the default read-only job token. Set audit to opt out if the defect recurs. Any other job follows egress-policy. Any other value fails the job. |
allowed-endpoints |
string | api.github.com:443 ghcr.io:443 github.com:443 pkg-containers.githubusercontent.com:443 |
harden-runner allow-list for block, space-separated host:port entries. The default is the ZAP image pull (GHCR) and GitHub; ZAP itself reaches nothing. A host the service or its install command reaches goes in extra-allowed-endpoints. Wildcards are not supported and a newline-separated list matches nothing. |
extra-allowed-endpoints |
string | empty | Appended to allowed-endpoints, for hosts only this repository reaches, such as the package index its install command uses. Same format. |
timeout-minutes |
number | 20 |
Timeout of the scan job, which covers the install, the service start and the scan. |
runs-on |
string | "ubuntu-24.04" |
Runner for every job, as a JSON string, because runs-on takes a string, an array or an object: "ubuntu-24.04", ["self-hosted","linux"] or {"group":"my-group","labels":["linux"]}. The default parses to the label this workflow always used. Invalid JSON fails the job at expression time. Jobs that follow egress-policy-secretless reach audit only on a GitHub-hosted runner and a label in the hosted list (EX-0001); see the workflow header for how harden-runner behaves on a self-hosted runner. |
allow-self-hosted |
boolean | false |
Let these jobs run on a self-hosted runner (default false: on any runner that is not GitHub-hosted the job fails). Setting it true is the caller's attestation that the runner is ephemeral, one job per VM, and isolated from secrets and the network. Even then a self-hosted runner takes only push, schedule, workflow_dispatch, release and same-repository pull_request events. Secret-bearing jobs belong on GitHub-hosted runners or a distinct ephemeral trusted pool. |
It never scans a host that is not loopback, never gives the container a token, never lets the upload job run your code, never
reads api-definition for a scan type that would not use it (a silent no-op is how a check stops checking), never accepts a context-user with no context to find it in, never lets a context file point ZAP's sign-in at a host that is not loopback or carry a credential in a URL, never prints a value it refused, never uploads a report that still holds the context's credentials, and never passes a
finding by raising the threshold.
Generated from docs/wiki/ at commit f3af2fa0bae3. Do not edit this wiki: the next push to main replaces every page. Corrections go to docs/wiki/ by pull request.
GYST
- Home
- Why GYST exists
- Getting started
- Design rules
- Secrets: Doppler and OIDC
- Security scanning explained
- The baseline and the weekly audit
- Releases and supply chain
- Keeping a project board current
- Adopting GYST in your own project
- Glossary
- Roadmap
Learn and contribute
- Learning path
- Which workflow do I need?
- Repository map
- Egress control
- Troubleshooting
- Lessons learned
- Testing and the contract
- Contributing and developing
- Maintaining this wiki
- Verify main
- FAQ
CI
Security
Release
- container-release
- python-docker-release
- python-package-release
- artifact-release
- verify-published
- base-image-digest
Docs and project
- docs-pages
- wiki-publish
- project-sync
- threat-model
- lory-audit
- agent-scan
- token-drift
- node-typecheck
- pr-title-lint
- vendored-drift
- upstream-sync
- repin
- pin-comments
Tools