Skip to content

Conversation

@littleKitchen
Copy link
Contributor

Summary

Standardize the actions: sub-schema introduced in #479 by extracting it into a dedicated top-level action_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.yml

  • Removed actions: block from sbom_reports artifact type
  • Added top-level action_mappings: section mapping GitHub Actions to their artifact types:
Artifact Type Actions
security_reports github/codeql-action/analyze, github/codeql-action/upload-sarif, ossf/scorecard-action, actions/dependency-review-action
build_artifacts actions/upload-artifact, actions/attest-build-provenance
test_results codecov/codecov-action
sbom_reports anchore/sbom-action, actions/attest-sbom

All SHAs match the pins currently used in workflow files.

Validation

  • ✅ YAML lint passes
  • Test-DependencyPinning.ps1 — 100% compliance
  • ✅ Pester tests — 47/47 passed

Closes #483

Depends on #479

Add sbom_reports to the compliance artifact retention tier (365 days)
in artifact-retention.yml with SHA-pinned action references for
anchore/sbom-action@v0.22.2 and actions/attest-sbom@v2.4.0.

- Add sbom_reports artifact type with 365-day retention
- Add sbom_reports to compliance required_artifacts list
- Add sbom_reports compression setting in github_actions section
- tool-checksums.json not updated (tracks binary tools, not GH Actions)

Closes microsoft#453
Part of microsoft#256
Extract the actions: sub-schema from sbom_reports into a dedicated
top-level action_mappings: section. This maps GitHub Actions to the
artifact types they produce with SHA-pinned references for traceability.

Artifact types covered:
- security_reports: codeql-action, scorecard-action, dependency-review-action
- build_artifacts: upload-artifact, attest-build-provenance
- test_results: codecov-action
- sbom_reports: sbom-action, attest-sbom

All SHAs match the pins currently used in workflow files.

Closes microsoft#483
@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.39%. Comparing base (67585f5) to head (dcf38a3).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #487      +/-   ##
==========================================
- Coverage   83.41%   83.39%   -0.03%     
==========================================
  Files          20       20              
  Lines        3510     3510              
==========================================
- Hits         2928     2927       -1     
- Misses        582      583       +1     
Flag Coverage Δ
pester 83.39% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@WilliamBerryiii WilliamBerryiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you resolve the conflicts, we'll get this merged. Thanks so much for taking this on!

Keep sbom_reports actions in the top-level action_mappings section
(introduced by this PR) and remove the inline actions block that
was re-added on main.
@littleKitchen
Copy link
Contributor Author

Done!

@bindsi bindsi merged commit 7927db2 into microsoft:main Feb 13, 2026
18 checks passed
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.

chore(config): standardize actions sub-schema in artifact-retention.yml

4 participants