Repository navigation
Add GitHub Actions linting workflow and Dockerfile - #15751
Merged
Merged
Conversation
KevinMind
force-pushed
the
kevinmind/addons/15744
branch
from
July 29, 2025 20:12
5e5af2c to
88dee81
Compare
KevinMind
force-pushed
the
kevinmind/addons/15744
branch
10 times, most recently
from
July 29, 2025 20:41
2200716 to
a4d415e
Compare
KevinMind
force-pushed
the
kevinmind/addons/15744
branch
from
July 30, 2025 05:28
a4d415e to
009d9b6
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds static analysis tools for GitHub Actions workflows by introducing actionlint and zizmor linting capabilities, along with security improvements to existing workflows through action pinning and permission hardening.
- Adds Docker-based linting tools (
actionlintandzizmor) with configuration files and Makefile targets - Pins GitHub Actions to specific commit hashes for enhanced security
- Hardens workflow permissions by adding explicit permission declarations and disabling credential persistence
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| zizmor.yml | Configuration file for zizmor static analysis tool |
| docker-compose.tools.yml | Docker compose configuration for actionlint and zizmor tools |
| Makefile | Build targets for running linting tools |
| .github/workflows/transfer-issues.yml | Removes entire workflow file |
| .github/workflows/stale.yml | Adds empty permissions declaration |
| .github/workflows/docs.yml | Hardens permissions and disables credential persistence |
| .github/workflows/ci.yml | Adds action linting job and hardens security across all jobs |
| .github/dependabot.yml | Changes update interval from weekly to daily |
| .github/actions/slack/action.yml | Pins slack action to specific commit hash |
| .github/actions/slack-workflow-notification/action.yml | Adds zizmor ignore comment for unpinned action usage |
| .github/actions/pr-comment/action.yml | Refactors to use environment variables instead of direct substitution |
| .github/actions/login-gar/action.yml | Pins auth and login actions to commit hashes |
| .github/actions/login-docker/action.yml | Pins login action to commit hash |
| .github/actions/context/action.yml | Refactors to use environment variables and improves shell safety |
diox
reviewed
Jul 30, 2025
diox
left a comment
Member
There was a problem hiding this comment.
I had assigned the issue to me yesterday afternoon since nobody had it and was about to submit a very similar fix 😅
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
diox
approved these changes
Jul 30, 2025
3 of 5 tasks
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.
Fixes: #15744
Description
Add
actionlintandzizmorto do static analysis on our github actions defined in mozilla/addonsContext
GIthub action pins
Testing
Checklist
#ISSUENUMat the top of your PR to an existing open issue in the mozilla/addons repository.┆Issue is synchronized with this Jira Task