Skip to content

Add the versions composite action - #345

Merged
azazeal merged 2 commits into
mainfrom
panos/versions-action
Sep 2, 2026
Merged

Add the versions composite action#345
azazeal merged 2 commits into
mainfrom
panos/versions-action

Conversation

@azazeal

@azazeal azazeal commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR adds the versions composite action. It allows callers to get a hold of the pinned tool versions they're interested in, from the .versions file #343 introduced.

It's consumed like this:

steps:
  - uses: smallstep/workflows/.github/actions/versions@main # or a pinned SHA
    id: versions

  - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
    with:
      go-version: ${{ steps.versions.outputs.go }}

  - uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
    with:
      version: v${{ steps.versions.outputs['golangci-lint'] }}

Additionally, it adds a .gitattributes file to the repository, so that every file is checked out with LF regardless of the GH runner it's executed in.

@azazeal
azazeal force-pushed the panos/versions-action branch 2 times, most recently from b91af43 to 73193dc Compare September 2, 2026 16:29
@azazeal
azazeal force-pushed the panos/versions-action branch from 73193dc to 80d1e2c Compare September 2, 2026 16:35
@azazeal
azazeal marked this pull request as ready for review September 2, 2026 16:50
@azazeal
azazeal requested a review from a team as a code owner September 2, 2026 16:50
@azazeal
azazeal requested a review from dopey September 2, 2026 16:50
@azazeal
azazeal enabled auto-merge September 2, 2026 16:50
@azazeal
azazeal merged commit e6b1879 into main Sep 2, 2026
10 checks passed
@azazeal
azazeal deleted the panos/versions-action branch September 2, 2026 16:52
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