Skip to content

ci: add actionlint for GitHub Actions workflow linting#18

Open
bskim45 wants to merge 1 commit intomainfrom
ci/add-actionlint
Open

ci: add actionlint for GitHub Actions workflow linting#18
bskim45 wants to merge 1 commit intomainfrom
ci/add-actionlint

Conversation

@bskim45
Copy link
Owner

@bskim45 bskim45 commented Mar 14, 2026

Summary

  • Add actionlint.yml CI workflow using raven-actions/actionlint (SHA pinned)
  • Add actionlint pre-commit hook for local workflow linting

Test plan

  • pre-commit run actionlint --all-files passes

Copilot AI review requested due to automatic review settings March 14, 2026 16:18
@coderabbitai
Copy link

coderabbitai bot commented Mar 14, 2026

Warning

Rate limit exceeded

@bskim45 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 3 minutes and 11 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4aaccd7f-5ad5-4cd2-9097-afbb8a6bdbba

📥 Commits

Reviewing files that changed from the base of the PR and between c0dcf8c and b7cd8b5.

📒 Files selected for processing (2)
  • .github/workflows/actionlint.yml
  • .pre-commit-config.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci/add-actionlint
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces actionlint to the project, a tool designed to lint GitHub Actions workflows. By integrating this linter, the project aims to improve the reliability and maintainability of its CI/CD pipelines, ensuring that all workflow definitions are syntactically correct and follow established guidelines, both through automated CI checks and local development safeguards.

Highlights

  • CI Workflow: Added a new actionlint.yml CI workflow that utilizes raven-actions/actionlint to lint GitHub Actions workflows, ensuring their correctness and adherence to best practices.
  • Pre-commit Hook: Integrated an actionlint pre-commit hook, allowing developers to lint GitHub Actions workflows locally before committing changes, catching issues early in the development cycle.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .pre-commit-config.yaml
    • Added actionlint repository and hook configuration.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/actionlint.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds actionlint as a pre-commit hook to lint GitHub Actions workflows. My review suggests an improvement to enhance the security and reproducibility of this new hook by pinning it to a specific commit SHA instead of a tag, which is a best practice for pre-commit configurations.

args: [--check]

- repo: https://github.com/rhysd/actionlint
rev: v1.7.11

Choose a reason for hiding this comment

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

medium

For security and reproducibility, it is a best practice to pin pre-commit hooks to a specific commit SHA rather than a tag. Tags are mutable and can be moved, which could result in running unexpected or malicious code. The SHA for tag v1.7.11 is 19e43c05f884b6c134de652293b5224326884f16.

    rev: 19e43c05f884b6c134de652293b5224326884f16

Copy link

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

Adds automated and local linting for GitHub Actions workflows to catch workflow syntax/config issues early.

Changes:

  • Add an actionlint pre-commit hook for local workflow linting.
  • Add a new CI workflow (actionlint.yml) that runs raven-actions/actionlint on pushes to main and on pull requests.

Reviewed changes

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

File Description
.pre-commit-config.yaml Adds rhysd/actionlint hook so contributors can lint workflows locally via pre-commit.
.github/workflows/actionlint.yml Introduces a CI job to run actionlint against repository workflows on PRs and main-branch pushes.

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

push:
branches: ["main"]
pull_request:
branches: ["**"]
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.

2 participants