feat: add reusable workflows for linting, vulnerability scanning, and dependency review#11
Open
alexlovelltroy wants to merge 3 commits into
Open
feat: add reusable workflows for linting, vulnerability scanning, and dependency review#11alexlovelltroy wants to merge 3 commits into
alexlovelltroy wants to merge 3 commits into
Conversation
… dependency review Signed-off-by: Alex Lovell-Troy <alex@lovelltroy.org>
…ws and actions Signed-off-by: Alex Lovell-Troy <alovelltroy@lanl.gov>
…s to latest versions Signed-off-by: Alex Lovell-Troy <alovelltroy@lanl.gov>
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.
Description
This pull request adds several new reusable GitHub Actions workflows focused on security and workflow linting, and updates the documentation to describe their usage. These workflows provide automated checks for dependency vulnerabilities, Go module CVEs, container image CVEs, and workflow file best practices. The README is expanded with detailed usage instructions for each new workflow.
implements portions of #132
New reusable workflows for CI/CD security and linting:
Security scanning workflows:
.github/workflows/dependency-review.yml: Runs GitHub's dependency review action to gate PRs introducing dependencies with known vulnerabilities or disallowed licenses..github/workflows/govulncheck.yml: Runs the Go team'sgovulnchecktool to detect CVEs in Go modules, including transitive dependencies..github/workflows/trivy-image-scan.yml: Scans already-built container images for vulnerabilities with Trivy and uploads results to GitHub Advanced Security.Workflow linting:
.github/workflows/lint-workflows.yml: Lints GitHub Actions workflow files usingactionlintfor syntax and shellcheck, andzizmorfor security-focused static analysis with SARIF reporting.Documentation updates:
Checklist
make test(or equivalent) locally and all tests passgit commit -s) with my real name and email<filename>.licensesidecarLICENSES/directoryType of Change
For more info, see Contributing Guidelines.