Skip to content

Conversation

@puerco
Copy link
Collaborator

@puerco puerco commented Aug 3, 2025

This PR modifies the policy generator to add the tag protection entry when it is reported as active.

If it's not there then the Tag protection struct will not be in the policy JSON.

Sample:

{
  "canonical_repo": "https://github.com/puerco/slsa-source-test.git",
  "protected_branches": [
    {
      "since": "2025-07-28T08:18:16.582Z",
      "name": "main",
      "target_slsa_source_level": "SLSA_SOURCE_LEVEL_3"
    }
  ],
  "protected_tag": {
    "since": "2025-07-28T08:18:16.582Z",
    "tag_hygiene": true
  }
}

Fixes #274
Fixes #259

Signed-off-by: Adolfo Garcia Veytia (puerco) puerco@carabiner.dev

puerco added 2 commits August 2, 2025 18:23
Signed-off-by: Adolfo Garcia Veytia (puerco) <puerco@carabiner.dev>
This commit adds the tag protection entry to the generated policy
when it is reported in the active controls.

Signed-off-by: Adolfo Garcia Veytia (puerco) <puerco@carabiner.dev>
@puerco puerco merged commit 302c150 into slsa-framework:main Aug 3, 2025
2 checks passed
@puerco puerco deleted the ctl-labels branch August 3, 2025 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Policy generation does not add tag protection Incorrect protection lists on sourcetool setup controls

1 participant