Skip to content

chore: add actionlint and zizmor linters #19459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 21, 2025
Merged

chore: add actionlint and zizmor linters #19459

merged 7 commits into from
Aug 21, 2025

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Aug 21, 2025

@ethanndickson ethanndickson requested a review from Copilot August 21, 2025 02:47
Copilot

This comment was marked as outdated.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds two GitHub Actions linters (actionlint and zizmor) to improve security and quality of GitHub workflow files. The changes include creating a wrapper script for the zizmor Docker image, updating the Makefile to include the new linters, and fixing all linting errors across multiple workflow files.

  • Adds actionlint linter for GitHub Actions workflows
  • Adds zizmor linter (Docker-based) for GitHub Actions security scanning
  • Fixes shell quoting, environment variable usage, and other linting issues throughout workflow files

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/zizmor.sh New wrapper script for running zizmor linter via Docker
Makefile Adds actionlint and zizmor lint targets to the build system
.github/workflows/*.yaml Fixes shell quoting, variable substitution, and security issues
.github/actions/*/action.yaml Updates action definitions to fix quoting and variable usage
docs/tutorials/testing-templates.md Fixes shell quoting in code example

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@ethanndickson ethanndickson left a comment

Choose a reason for hiding this comment

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

lgtm 🤞 🤞 🤞

Copy link
Contributor

@jdomeracki-coder jdomeracki-coder left a comment

Choose a reason for hiding this comment

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

Let's go! 🚀

@deansheather deansheather merged commit 8d0bc48 into main Aug 21, 2025
40 checks passed
@deansheather deansheather deleted the dean/zizmor branch August 21, 2025 12:14
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2025
.PHONY: lint/actions

lint/actions/actionlint:
go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7
Copy link
Member

Choose a reason for hiding this comment

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

Pinning version in Makefile makes it difficult to upgrade, as Dpendabot doesn't detect them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy