ci: Add actionlint hardened action step and documentation#53
Merged
Conversation
Signed-off-by: Yunseo Kim <git@yunseo.kim>
Signed-off-by: Yunseo Kim <git@yunseo.kim>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Adds the
windlasstech/actionlint-hardened-actionstep to the repository lint workflow to validate all GitHub Actions workflow files. Also documents the action usage in the workflow hardening security guide..github/workflows/lint-and-format.yml: new actionlint step using SHA-pinnedwindlasstech/actionlint-hardened-action@39b1442298202b328f0da62908b70c54ab6601b9(v1.0.0)docs/security/workflow-hardening.md: newWorkflow Lintingsection describing how to use the hardened actionRelated Issues
Change Type
Changelog
Changelog update:
CHANGELOG.md[Unreleased]updatedChecklist
General
type(scope): SummaryCI/Workflow Changes (if applicable)
If this PR modifies GitHub Actions workflows or CI/CD configuration, it must comply with our Supply Chain Integrity requirements:
uses:references are pinned to full 40-character commit SHAs (with# vX.Y.Zcomment)step-security/harden-runneris included as the first step in every jobpermissionsare used instead of top-levelpermissionscontents: readpermissions, which matches the current convention documented indocs/security/workflow-hardening.md.Protocol / Compatibility Impact
If impacted, describe compatibility impact:
Testing
Describe test evidence:
bun run lint:mdpassesbun run format:checkpassesDocumentation
Rollout / Risk
Reviewer Checklist