chore(config): standardize action mappings in artifact-retention.yml #487
+39
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Standardize the
actions:sub-schema introduced in #479 by extracting it into a dedicated top-levelaction_mappings:section, as proposed in #483.Approach
Chose Option B from #483 — extract to a separate section. This keeps artifact type definitions uniform (all follow the same retention_days/description/compression_level pattern) while providing a centralized place for action-to-artifact traceability.
Changes
.github/artifact-retention.ymlactions:block fromsbom_reportsartifact typeaction_mappings:section mapping GitHub Actions to their artifact types:security_reportsgithub/codeql-action/analyze,github/codeql-action/upload-sarif,ossf/scorecard-action,actions/dependency-review-actionbuild_artifactsactions/upload-artifact,actions/attest-build-provenancetest_resultscodecov/codecov-actionsbom_reportsanchore/sbom-action,actions/attest-sbomAll SHAs match the pins currently used in workflow files.
Validation
Test-DependencyPinning.ps1— 100% complianceCloses #483
Depends on #479