Skip to content

Mark the VSA control as active when issuing the VSA - #479

Merged
puerco merged 1 commit into
slsa-framework:mainfrom
puerco:scs-vsa
Nov 22, 2026
Merged

puerco merged 1 commit into
slsa-framework:mainfrom
puerco:scs-vsa

Conversation

@puerco

@puerco puerco commented Nov 22, 2026

Copy link
Copy Markdown
Member

Every SLSA source level requires SLSA_SOURCE_SCS_VSA, but the GitHub backend only reports the control when the commit being attested already has a VSA. A commit never has one the first time it is attested, so any branch with a policy targeting level 2 or higher fell back to level 1 and the attest command exited with code 2.

When the VSA is generated in the same run as the provenance, record the control as active in the provenance, as is already done for SLSA_SOURCE_SCS_PROVENANCE.

Every SLSA source level requires SLSA_SOURCE_SCS_VSA, but the GitHub
backend only reports the control when the commit being attested already
has a VSA. A commit never has one the first time it is attested, so any
branch with a policy targeting level 2 or higher fell back to level 1
and the attest command exited with code 2.

When the VSA is generated in the same run as the provenance, record the
control as active in the provenance, as is already done for
SLSA_SOURCE_SCS_PROVENANCE.

Signed-off-by: Adolfo Garcia Veytia (puerco) <puerco@carabiner.dev>
@puerco puerco added the bug Something isn't working label Nov 22, 2026
@puerco
puerco merged commit 8f9134a into slsa-framework:main Nov 22, 2026
7 checks passed
@puerco
puerco deleted the scs-vsa branch November 22, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant