$ the-wire · showcase
Machine tokens for guard hooks, and 401s no longer kill a scan
By RepoJournal · Filed · About Agent Security · Composed from the cited sources · methodology
snyk/agent-scan can now authenticate Agent Guard hooks with a machine identity instead of a push key, and retries machine-auth requests once when the token expires mid-scan.
feat: authenticate guard hooks with a machine token snyk/agent-scan
`guard install` can now wire Agent Guard hooks to a machine identity: the installer passes `ADS_TOKEN_COMMAND`, `ADS_BASE_URL` and `TENANT_ID` (or `--tenant-id`), and setting any of the first two turns on machine identity mode, which then requires all three. If your hooks currently authenticate with a push key, this is the path off it.
fix(machine-auth): retry config and async submit once with a fresh token snyk/agent-scan
Machine-auth requests now treat a 401 the way remote discovery already did: re-run the token command and retry once if it prints a different token. As the project describes it, a 401 on the tenant config fetch or async submit "failed the scan" before this change, so scans that outlived their token now complete instead.
ci: bump GitHub Actions to Node 24 versions (#568) snyk/agent-scan
GitHub-hosted runners deprecated Node 20 actions, so the workflow now uses the latest majors of actions/checkout, actions/setup-python, astral-sh/setup-uv and actions/upload-artifact. Nothing to change on your side unless you've pinned these actions in your own pipelines.
Merge pull request #571 from snyk/fix/machine-auth-401-refresh snyk/agent-scan
The 401 refresh fix is merged into the mainline as one change, so the retry behavior and the shared helper that remote discovery now uses arrive together.
test(remote-discovery): drop the builder log assertion [ADS-1644] snyk/agent-scan
Also landed: a remote-discovery test no longer asserts on builder log output.