Skip to content

Fix actionlint false failure by correctly excluding vendored dotnet-install.sh from ShellCheck#840

Merged
Bryan-Roe merged 2 commits into
mainfrom
copilot/fix-actionlint-failure
Jul 11, 2026
Merged

Fix actionlint false failure by correctly excluding vendored dotnet-install.sh from ShellCheck#840
Bryan-Roe merged 2 commits into
mainfrom
copilot/fix-actionlint-failure

Conversation

Copilot AI commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

The Workflow Lint job was failing in actionlint because ShellCheck scanned the vendored root ./dotnet-install.sh and reported SC2068 errors from third-party code. The configured ignore pattern did not match the actual scanned path format.

  • Root cause

    • ignore_paths: dotnet-install.sh in .github/workflows/actionlint.yml did not reliably exclude ./dotnet-install.sh in the ludeeus/action-shellcheck path matching flow.
  • Workflow hardening change

    • Updated ShellCheck ignore paths to match the repo-root script path form:
      • */dotnet-install.sh
      • my-agent-0b2avt (existing generated-path exclusion retained)
  • Regression protection

    • Added tests/test_actionlint_workflow.py to assert the actionlint ShellCheck step preserves the vendored-script exclusion pattern.
# .github/workflows/actionlint.yml
with:
  ignore_paths: >-
    */dotnet-install.sh
    my-agent-0b2avt

Copilot AI review requested due to automatic review settings July 11, 2026 04:15

Copilot AI commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

@Bryan-Roe Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository and had to close this PR. The error I am seeing is:

no `copilot-setup-steps` job found in your `copilot-setup-steps.yml` workflow file. Please ensure you have a single job named `copilot-setup-steps`. For more details, see https://gh.io/copilot/actions-setup-steps

Once you or someone with the necessary access fixes the problem, please unassign and then reassign issue #0 to me and I'll retry. Thanks!

Copilot AI removed the request for review from Copilot July 11, 2026 04:15
Copilot AI requested review from Copilot and removed request for Copilot July 11, 2026 04:17
Copilot AI changed the title [WIP] Fix failing GitHub Actions job actionlint Fix actionlint false failure by correctly excluding vendored dotnet-install.sh from ShellCheck Jul 11, 2026
Copilot AI requested a review from Bryan-Roe July 11, 2026 04:20
@Bryan-Roe Bryan-Roe marked this pull request as ready for review July 11, 2026 04:21
Copilot AI review requested due to automatic review settings July 11, 2026 04:21
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@sourcery-ai sourcery-ai Bot 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.

Sorry @Bryan-Roe, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Copilot AI commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

@Bryan-Roe Thanks for sending me some feedback. Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository. The error I am seeing is:

no `copilot-setup-steps` job found in your `copilot-setup-steps.yml` workflow file. Please ensure you have a single job named `copilot-setup-steps`. For more details, see https://gh.io/copilot/actions-setup-steps

Once you or someone with the necessary access fixes the problem, please let me know in a comment and I'll try again. Thanks!

@Bryan-Roe Bryan-Roe merged commit 8c4d0db into main Jul 11, 2026
5 of 10 checks passed
@Bryan-Roe Bryan-Roe deleted the copilot/fix-actionlint-failure branch July 11, 2026 04:21

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

Updates Workflow Lint to exclude the vendored .NET installer from ShellCheck and adds regression coverage.

Changes:

  • Adjusts the ShellCheck exclusion path.
  • Adds a unit test for the workflow configuration.

Reviewed changes

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

File Description
.github/workflows/actionlint.yml Updates ShellCheck ignore paths.
tests/test_actionlint_workflow.py Verifies the exclusion configuration.

# Microsoft .NET installer) and generated agent-template directories.
ignore_paths: dotnet-install.sh my-agent-0b2avt
ignore_paths: >-
*/dotnet-install.sh
)

ignore_paths = shellcheck_step["with"]["ignore_paths"].split()
assert "*/dotnet-install.sh" in ignore_paths
ignore_paths: dotnet-install.sh my-agent-0b2avt
ignore_paths: >-
*/dotnet-install.sh
my-agent-0b2avt
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