Skip to content

Update softprops/action-gh-release v1 -> v2 - #1

Merged
mattgodbolt merged 1 commit into
mainfrom
add-actionlint
Jul 12, 2026
Merged

mattgodbolt merged 1 commit into
mainfrom
add-actionlint

Conversation

@mattgodbolt

@mattgodbolt mattgodbolt commented Jul 10, 2026

Copy link
Copy Markdown
Member

Found by an org-wide actionlint sweep. Per review feedback the lint tooling itself is staying in the core repos (compiler-explorer, infra, compiler-workflows) — this PR keeps just the fixes, which stand on their own:

  • softprops/action-gh-release v1 -> v2 (v1 runs on a deprecated node runtime)

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 10, 2026 21:16

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 an actionlint CI workflow and repo-level actionlint configuration as part of the org-wide rollout, and updates the release workflow to use softprops/action-gh-release@v2.

Changes:

  • Added a new workflow to lint GitHub Actions workflow files with rhysd/actionlint.
  • Added .github/actionlint.yaml to define self-hosted runner labels and tune shellcheck gating (ignore info/style).
  • Bumped softprops/action-gh-release from v1 to v2 in the release workflow.

Reviewed changes

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

File Description
.github/workflows/lint-actions.yml New CI workflow to run actionlint on workflow/config changes.
.github/workflows/build.yml Updates release asset upload step to softprops/action-gh-release@v2.
.github/actionlint.yaml Adds actionlint configuration (runner labels + shellcheck ignore patterns).
Comments suppressed due to low confidence (1)

.github/workflows/build.yml:78

  • The release job relies on GITHUB_TOKEN to upload release assets. If the repo/org default workflow token permissions are set to read-only, this step will fail; it’s safer to declare explicit contents: write permissions for the job.
    - name: Upload Release Assets
      uses: softprops/action-gh-release@v2
      with:
        files: |
          ce-node-exporter-linux-amd64.zip
          ce-node-exporter-linux-arm64.zip
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

Comment thread .github/workflows/lint-actions.yml Outdated
Comment on lines +10 to +14
jobs:
actionlint:
if: github.repository_owner == 'compiler-explorer'
runs-on: ubuntu-latest
steps:
- softprops/action-gh-release v1 -> v2 (v1 runs on a deprecated node runtime)

Found by an org-wide actionlint sweep; the lint tooling itself is staying in the core repos only, but these fixes stand on their own.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mattgodbolt mattgodbolt changed the title Lint GitHub Actions workflows with actionlint Update softprops/action-gh-release v1 -> v2 Jul 10, 2026
@mattgodbolt
mattgodbolt merged commit 772cd41 into main Jul 12, 2026
2 checks passed
@mattgodbolt
mattgodbolt deleted the add-actionlint branch July 12, 2026 19:30
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