Skip to content

add linters for GitHub workflows and actions#186

Draft
peng225 wants to merge 6 commits into
mainfrom
add-actionlint
Draft

add linters for GitHub workflows and actions#186
peng225 wants to merge 6 commits into
mainfrom
add-actionlint

Conversation

@peng225

@peng225 peng225 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

peng225 added 2 commits July 2, 2026 07:21
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>

Copilot AI left a comment

Copy link
Copy Markdown

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 CI linting for GitHub Actions workflows/actions and hardens existing workflows by pinning action versions, tightening credentials handling, and adding job timeouts.

Changes:

  • Add actionlint, ghalint, and zizmor tooling to versions.mk/Makefile, and introduce a meta workflow to run them on workflow/action changes.
  • Pin multiple GitHub Actions to commit SHAs, add timeout-minutes, and reduce credential persistence in workflows.
  • Update the release workflow scripting and Go toolchain declaration.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
versions.mk Adds version pins for zizmor, actionlint, and ghalint.
Makefile Adds install targets for actionlint, ghalint, and zizmor.
go.mod Adds a toolchain directive.
.github/workflows/stale.yaml Pins actions/stale to a commit SHA and adds a job timeout.
.github/workflows/release.yaml Pins checkout/setup-go, adds timeout, and refactors shell usage around versioning and release creation.
.github/workflows/pr-labeled.yaml Adds a job timeout.
.github/workflows/meta-actions.yml New workflow to run actionlint, ghalint, and zizmor on workflow/action changes.
.github/workflows/main.yaml Pins checkout/setup-go and adds a job timeout.
.github/workflows/helm.yaml Pins actions, adds timeout, and adjusts checkout credentials behavior.
.github/workflows/helm-release.yaml Pins actions, adds timeout, and adjusts checkout credentials behavior.
.github/workflows/e2e.yaml Pins checkout/setup-go, adds timeout, and adjusts checkout credentials behavior.
.github/workflows/create-chart-update-pr.yaml Adds timeout, refactors quoting/env handling, pins actions, and adjusts checkout credentials behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yaml
Comment thread .github/workflows/create-chart-update-pr.yaml
Comment thread .github/workflows/create-chart-update-pr.yaml Outdated
Comment thread Makefile Outdated
Since ghalint v1.5.6 requires go version >= 1.26.2,
I set toolchain in go.mod to v1.26.4 (current latest).

Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
@peng225 peng225 force-pushed the add-actionlint branch 3 times, most recently from a94baef to 54e22f2 Compare July 3, 2026 07:14
peng225 added 3 commits July 3, 2026 07:22
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Comment thread .github/workflows/meta-actions.yml
Comment thread .github/workflows/create-chart-update-pr.yaml
Comment thread .github/workflows/create-chart-update-pr.yaml
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.

3 participants