Skip to content

chore(ci): enforce actionlint in PR pipeline - #33

Merged
DerekRoberts merged 3 commits into
mainfrom
chore/enforce-actionlint
Sep 14, 2026
Merged

DerekRoberts merged 3 commits into
mainfrom
chore/enforce-actionlint

Conversation

@DerekRoberts

Copy link
Copy Markdown
Member

Closes #17

Summary

  • Enforces actionlint in .github/workflows/pr-open.yml via the official Docker container rhysd/actionlint:latest on pull requests and pushes to main.
  • Audited all composite actions (route-tls, cleanup-pr, oc-runner, deployer, crunchy) and workflow files (.deployer.yml, .pr-close.yml, pr-open.yml) to ensure all ${{ github.* }} and ${{ inputs.* }} expressions inside run: and command script blocks pass through step env: variables rather than inline string interpolation.
  • Fixed steps.deploy step reference in .deployer.yml and formatted redirection blocks to resolve shellcheck SC2129 style notices.

Copilot AI balanced review requested due to automatic review settings September 14, 2026 05:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Optional S3 deployments now fail, credentials may be logged, and CI does not check composite-action scripts.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds CI linting and hardens shell scripts against unsafe GitHub Actions context interpolation.

Changes:

  • Adds an actionlint CI job.
  • Routes workflow/action inputs through environment variables.
  • Fixes deployment output references and shell redirections.
File summaries
File Description
route-tls/action.yml Safely passes the action path.
oc-runner/action.yml Moves inputs into environment variables.
deployer/action.yml Hardens deployment scripts.
crunchy/action.yml Hardens inputs and revises S3 handling.
cleanup-pr/action.yml Secures cleanup command inputs.
.github/workflows/pr-open.yml Adds actionlint and formats environment output.
.github/workflows/.pr-close.yml Removes inline interpolation from cleanup commands.
.github/workflows/.deployer.yml Hardens variables and fixes the deployment step ID.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 3
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crunchy/action.yml Outdated
Comment thread .github/workflows/pr-open.yml
Comment thread crunchy/action.yml
@DerekRoberts DerekRoberts moved this to Active in DevOps (NR) Sep 14, 2026
@DerekRoberts DerekRoberts self-assigned this Sep 14, 2026
@DerekRoberts
DerekRoberts merged commit 4d796a0 into main Sep 14, 2026
7 checks passed
@DerekRoberts
DerekRoberts deleted the chore/enforce-actionlint branch September 14, 2026 05:25
@github-project-automation github-project-automation Bot moved this from Active to Done in DevOps (NR) Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

chore: Enforce actionlint in CI to prevent script injection regressions

2 participants