Skip to content

Enable ActionLint (static checker for GitHub Actions workflow files)#8906

Draft
mikeharder wants to merge 19 commits into
Azure:mainfrom
mikeharder:actionlint
Draft

Enable ActionLint (static checker for GitHub Actions workflow files)#8906
mikeharder wants to merge 19 commits into
Azure:mainfrom
mikeharder:actionlint

Conversation

@mikeharder

@mikeharder mikeharder commented Jul 1, 2026

Copy link
Copy Markdown
Member

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.

Pull request overview

Adds ActionLint to CI for static validation of GitHub Actions workflows, and updates existing workflows to be more shell-safe (quoting/loop fixes) so they lint cleanly.

Changes:

  • Introduces a new .github/workflows/actionlint.yml workflow that runs rhysd/actionlint with a problem matcher.
  • Adds ActionLint configuration and a problem matcher definition under .github/.
  • Hardens several workflow shell snippets (quoting command substitutions; avoiding for f in $(find ...) word-splitting).

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/validate-go-version.yml Reworks find iteration to be safer for filenames and avoid word-splitting.
.github/workflows/test-ext-azure-ai-agents.yml Quotes version argument to avoid word-splitting/empty parsing issues.
.github/workflows/lint-bicep.yml Quotes $(which bicep) path usages to avoid issues with unexpected output/whitespace.
.github/workflows/copilot-setup-steps.yml Quotes GOPATH-derived install path for tool installation.
.github/workflows/actionlint.yml Adds new ActionLint workflow to lint .github/** changes.
.github/matchers/actionlint.json Adds problem matcher to surface ActionLint findings inline in PR checks.
.github/actionlint.yaml Adds ActionLint ignore rules for generated/locked workflow files.

Comment thread .github/workflows/actionlint.yml
Comment thread .github/workflows/validate-go-version.yml Outdated
Comment thread .github/workflows/validate-go-version.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread .github/workflows/validate-go-version.yml Outdated

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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/validate-go-version.yml Outdated
Comment thread .github/workflows/lint-bicep.yml
@mikeharder mikeharder marked this pull request as draft July 1, 2026 16:13

@tg-msft tg-msft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for getting this started for us!

Comment thread .github/workflows/validate-go-version.yml

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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/lint-bicep.yml Outdated
which bicep
sudo curl -o $(which bicep) -L https://github.com/Azure/bicep/releases/download/v0.44.1/bicep-linux-x64
sudo chmod +x $(which bicep)
BICEP_PATH=$(which bicep)
# (trimpath, pie, cfi, cfg, osusergo) matching release builds.
# -BuildRecordMode produces both a production and a record-tagged binary.
pwsh -File ci-build.ps1 -BuildRecordMode -OutputFileName azure-ai-agents-linux-amd64 -Version $(cat version.txt | tr -d '\r\n')
pwsh -File ci-build.ps1 -BuildRecordMode -OutputFileName azure-ai-agents-linux-amd64 -Version "$(cat version.txt | tr -d '\r\n')"
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.

Enable ActionLint (static checker for GitHub Actions workflow files)

4 participants