WIP: ci: prevent checkout credential persistence #2
Loading…
Reference in a new issue
No description provided.
Delete branch "audit/ci-credential-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
persist-credentials: falseon the Forgejo checkout v6 step.originURL. The guard only checks command status/key names and never logs remote or Git-config values.Verification
actionlint 1.7.12passed (the known external Forgejo action-URL format diagnostic was explicitly ignored).git diff --checkpassed; commit3858e2db83893a65a19b4abc787dc51d9f58d204is GPG-signed.make validatecould not complete because its pre-existing generation step could not resolve/downloadbentrumanforcongress.com(DNS error / curl exit 6), not because of the workflow-only change.Supported-permissions limitation
The current server's matching Forgejo v15.0.4 source assigns same-repository Action PR tasks write access by default and only assigns read access for fork PRs:
GetActionRepoPermission. This release does not enforce a GitHub-style workflowpermissions: contents: readdeclaration for the automatic token. I intentionally did not add an unenforced declaration or represent it as a security control. A server/operator-side token-scope policy or upgrade is needed to constrain same-repository PR token capability; this PR prevents checkout from persisting that token in Git configuration/helper state after checkout.Rollback
Revert
3858e2d(only.forgejo/workflows/booklet.ymlchanges).ci: prevent checkout credential persistenceto WIP: ci: prevent checkout credential persistenceClosing without merge because the owner cancelled the
code-security-audit-2026-07campaign. This does not revert previously merged work.Pull request closed