From 3c315f2ad93edb1235ba376f354ddc6e5d719602 Mon Sep 17 00:00:00 2001 From: jerky676 Date: Sun, 11 Oct 2026 11:43:14 -0500 Subject: [PATCH 1/3] Fix python-build-artifacts release and helm-publish chart path - python-build-artifacts: drop the second release step copied from the VS Code workflow (unset EXTENSION_NAME/SBOM_NAME, un-prefixed tag). Generate release notes on the softprops release instead, and point the pip cache at pyproject.toml so repos without requirements.txt work. - helm-publish: push charts to oci:////charts by default (new chart-repository input). Pushing to the owner root put the chart in the same GHCR package as the image, so chart version tags overwrote image tags. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/helm-publish.yml | 6 +++++- .github/workflows/python-build-artifacts.yml | 15 ++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/helm-publish.yml b/.github/workflows/helm-publish.yml index cbe710b..81bff46 100644 --- a/.github/workflows/helm-publish.yml +++ b/.github/workflows/helm-publish.yml @@ -20,6 +20,10 @@ on: description: 'OCI registry host' type: string default: 'ghcr.io' + chart-repository: + description: 'Repository path under the owner that charts are pushed to (oci:////). Keeps charts separate from same-named images.' + type: string + default: 'charts' tag-name: description: 'Release tag (e.g. v1.2.3). Defaults to the calling workflow ref name.' type: string @@ -65,4 +69,4 @@ jobs: - name: Push chart to GHCR run: | helm push /tmp/helm-output/${{ inputs.chart-name }}-*.tgz \ - oci://${{ inputs.registry }}/${{ github.repository_owner }} + oci://${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.chart-repository }} diff --git a/.github/workflows/python-build-artifacts.yml b/.github/workflows/python-build-artifacts.yml index e4abe5f..b849a63 100644 --- a/.github/workflows/python-build-artifacts.yml +++ b/.github/workflows/python-build-artifacts.yml @@ -53,6 +53,9 @@ jobs: with: python-version-file: '.python-version' cache: pip + cache-dependency-path: | + **/requirements*.txt + **/pyproject.toml - name: Install build dependencies run: | @@ -74,15 +77,5 @@ jobs: with: tag_name: ${{ env.FULL_TAG }} name: ${{ env.FULL_TAG }} + generate_release_notes: true files: dist/* - - - name: Create GitHub Release with assets - env: - GH_TOKEN: ${{ github.token }} - RELEASE_TAG: ${{ steps.version.outputs.version }} - run: | - gh release create "${RELEASE_TAG}" \ - --title "${RELEASE_TAG}" \ - --generate-notes \ - "${EXTENSION_NAME}" \ - "${SBOM_NAME}" From 7537287138cdb26e921ebcd6449abdf99c1bbb9c Mon Sep 17 00:00:00 2001 From: jerky676 Date: Sun, 11 Oct 2026 11:50:16 -0500 Subject: [PATCH 2/3] Add reusable CI workflows: package check, helm lint, docker build - python-package-check: build the sdist/wheel, install the wheel and load every console-script entry point from outside the checkout. Fails if an entry point won't load, isn't on PATH, or is an async function (which returns a coroutine and never runs). Optional import-modules input. - helm-lint: lint a chart, with optional values files and --strict. - docker-build: build-only counterpart to docker-build-push for PR checks; no registry login or push, read-only permissions. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-build.yml | 62 ++++++++++++++ .github/workflows/helm-lint.yml | 48 +++++++++++ .github/workflows/python-package-check.yml | 97 ++++++++++++++++++++++ 3 files changed, 207 insertions(+) create mode 100644 .github/workflows/docker-build.yml create mode 100644 .github/workflows/helm-lint.yml create mode 100644 .github/workflows/python-package-check.yml diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..8af1835 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,62 @@ +name: Docker Build + +# Build-only counterpart to docker-build-push.yml for PR checks: no registry +# login, no push, read-only permissions. + +on: + workflow_call: + inputs: + runner: + description: 'Runner label(s) for the workflow jobs' + type: string + default: 'ubuntu-latest' + context: + description: 'Docker build context path' + type: string + default: '.' + dockerfile: + description: 'Path to the Dockerfile' + type: string + default: '' + platforms: + description: 'Comma-separated list of target platforms (e.g. linux/amd64,linux/arm64)' + type: string + default: '' + build-args: + description: 'Newline-separated build-time variables (KEY=VALUE), passed to build-push-action build-args' + type: string + default: '' + build-contexts: + description: 'Newline-separated additional build contexts (NAME=PATH)' + type: string + default: '' + target: + description: 'Target build stage to build' + type: string + default: '' + +permissions: + contents: read + +jobs: + build: + runs-on: ${{ inputs.runner }} + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v4 + + - name: Build image + uses: docker/build-push-action@v7 + with: + context: ${{ inputs.context }} + file: ${{ inputs.dockerfile != '' && inputs.dockerfile || null }} + platforms: ${{ inputs.platforms != '' && inputs.platforms || null }} + target: ${{ inputs.target != '' && inputs.target || null }} + build-args: ${{ inputs.build-args }} + build-contexts: ${{ inputs.build-contexts }} + push: false + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/.github/workflows/helm-lint.yml b/.github/workflows/helm-lint.yml new file mode 100644 index 0000000..70071d9 --- /dev/null +++ b/.github/workflows/helm-lint.yml @@ -0,0 +1,48 @@ +name: Helm Lint + +on: + workflow_call: + inputs: + runner: + description: 'Runner label(s) for the workflow jobs' + type: string + default: 'ubuntu-latest' + chart-path: + description: 'Path to the Helm chart directory (e.g. helm/my-chart)' + type: string + required: true + values-files: + description: 'Newline-separated values files to lint the chart with (passed as -f)' + type: string + default: '' + strict: + description: 'Fail on lint warnings' + type: boolean + default: false + +permissions: + contents: read + +jobs: + lint: + runs-on: ${{ inputs.runner }} + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Install Helm + uses: azure/setup-helm@v5 + + - name: Lint chart + env: + CHART_PATH: ${{ inputs.chart-path }} + VALUES_FILES: ${{ inputs.values-files }} + STRICT: ${{ inputs.strict }} + run: | + set -euo pipefail + args=() + while IFS= read -r f; do + [ -n "$f" ] && args+=(-f "$f") + done <<< "$VALUES_FILES" + [ "$STRICT" = "true" ] && args+=(--strict) + helm lint "$CHART_PATH" "${args[@]}" diff --git a/.github/workflows/python-package-check.yml b/.github/workflows/python-package-check.yml new file mode 100644 index 0000000..dff940e --- /dev/null +++ b/.github/workflows/python-package-check.yml @@ -0,0 +1,97 @@ +name: Python Package Check + +# Builds the sdist and wheel, installs the wheel and checks it is usable: +# every console-script entry point must load and be a plain (non-async) +# callable, and any listed modules must import from the installed wheel. +# Catches packaging mistakes (missing modules, broken entry points) that +# tests against an editable install don't. + +on: + workflow_call: + inputs: + runner: + description: 'Runner label(s) for the workflow jobs' + type: string + default: 'ubuntu-latest' + import-modules: + description: 'Space-separated modules that must import from the installed wheel (e.g. "main src.service")' + type: string + default: '' + +permissions: + contents: read + +jobs: + package: + runs-on: ${{ inputs.runner }} + steps: + - name: Checkout repository + uses: actions/checkout@v7 + with: + fetch-depth: 0 # setuptools-scm needs the tags + + - name: Set up Python + uses: actions/setup-python@v7 + with: + python-version-file: '.python-version' + cache: pip + cache-dependency-path: | + **/requirements*.txt + **/pyproject.toml + + - name: Build Python package + run: | + python -m pip install --upgrade pip build + python -m build + + - name: Install wheel + run: pip install dist/*.whl + + # Run outside the checkout so imports resolve from the installed wheel, + # not the source tree. + - name: Check console-script entry points + working-directory: ${{ runner.temp }} + env: + DIST_DIR: ${{ github.workspace }}/dist + shell: python + run: | + import importlib.metadata as md + import inspect + import os + import pathlib + import shutil + import sys + + wheel = next(pathlib.Path(os.environ["DIST_DIR"]).glob("*.whl")) + dist = md.distribution(wheel.name.split("-")[0]) + scripts = [ep for ep in dist.entry_points if ep.group == "console_scripts"] + failed = False + for ep in scripts: + try: + target = ep.load() + except Exception as e: + print(f"::error::{ep.name} -> {ep.value} failed to load: {e!r}") + failed = True + continue + if not callable(target) or inspect.iscoroutinefunction(target): + print(f"::error::{ep.name} -> {ep.value} must be a plain callable (async functions return a coroutine and never run)") + failed = True + elif shutil.which(ep.name) is None: + print(f"::error::{ep.name} is not on PATH after install") + failed = True + else: + print(f"ok {ep.name} -> {ep.value}") + if not scripts: + print("No console scripts defined") + sys.exit(1 if failed else 0) + + - name: Check module imports + if: ${{ inputs.import-modules != '' }} + working-directory: ${{ runner.temp }} + env: + MODULES: ${{ inputs.import-modules }} + run: | + for m in $MODULES; do + python -c 'import importlib, sys; importlib.import_module(sys.argv[1])' "$m" + echo "ok import $m" + done From c8a4028c434ac443ecc2cc6720e12fb143094b8a Mon Sep 17 00:00:00 2001 From: jerky676 Date: Sun, 11 Oct 2026 13:14:22 -0500 Subject: [PATCH 3/3] Add actionlint PR check, fix lint findings, lock action versions - local-pr.yml: run actionlint on every pull request to this repo. - Fix existing actionlint findings so the check starts green: quote $GITHUB_OUTPUT/$GITHUB_ENV and other variables in run scripts, and pass github.head_ref to `git push` in vscode-pr-check through env rather than inline (script injection via branch name). - Pin every action to an exact release with `gh actions-lock`; resolved commit SHAs are recorded in .github/workflows/actions.lock. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/action-tag-release.yml | 6 +- .github/workflows/action-workflow-release.yml | 4 +- .github/workflows/actions.lock | 153 ++++++++++++++++++ .github/workflows/docker-build-push.yml | 14 +- .github/workflows/docker-build.yml | 8 +- .github/workflows/helm-lint.yml | 6 +- .github/workflows/helm-publish.yml | 6 +- .github/workflows/local-pr.yml | 24 +++ .github/workflows/local-release.yml | 2 + .github/workflows/python-build-artifacts.yml | 20 +-- .github/workflows/python-package-check.yml | 6 +- .github/workflows/python-pr-check.yml | 8 +- .github/workflows/vscode-ext-publish.yml | 8 +- .github/workflows/vscode-ext-release.yml | 22 +-- .github/workflows/vscode-pr-check.yml | 12 +- 15 files changed, 252 insertions(+), 47 deletions(-) create mode 100644 .github/workflows/actions.lock create mode 100644 .github/workflows/local-pr.yml diff --git a/.github/workflows/action-tag-release.yml b/.github/workflows/action-tag-release.yml index 6a19e90..8936fe3 100644 --- a/.github/workflows/action-tag-release.yml +++ b/.github/workflows/action-tag-release.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Tag Action Release # Bumps the repo's semantic version tag (vX.Y.Z) and moves the matching @@ -35,7 +37,7 @@ jobs: steps: - name: Resolve bump id: bump - uses: actions/github-script@v9 + uses: actions/github-script@v9.0.0 env: BUMP_INPUT: ${{ inputs.bump }} MSG: ${{ github.event.head_commit.message }} @@ -60,7 +62,7 @@ jobs: core.setOutput('bump', bump); - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: fetch-depth: 0 fetch-tags: true diff --git a/.github/workflows/action-workflow-release.yml b/.github/workflows/action-workflow-release.yml index 29a021a..fac0ba2 100644 --- a/.github/workflows/action-workflow-release.yml +++ b/.github/workflows/action-workflow-release.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Action Workflow Release # Moves a static release tag (default: `release`) to the triggering commit. @@ -29,7 +31,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Move release tag env: diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..378d65d --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,153 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.2' +workflows: + '.github/workflows/action-tag-release.yml': + - 'actions/checkout@v7.0.1' + - 'actions/github-script@v9.0.0' + '.github/workflows/action-workflow-release.yml': + - 'actions/checkout@v7.0.1' + '.github/workflows/docker-build-push.yml': + - 'actions/attest-build-provenance@v4.2.2' + - 'actions/checkout@v7.0.1' + - 'docker/build-push-action@v7.4.0' + - 'docker/login-action@v4.6.0' + - 'docker/metadata-action@v6.2.0' + - 'docker/setup-buildx-action@v4.4.1' + '.github/workflows/docker-build.yml': + - 'actions/checkout@v7.0.1' + - 'docker/build-push-action@v7.4.0' + - 'docker/setup-buildx-action@v4.4.1' + '.github/workflows/helm-lint.yml': + - 'actions/checkout@v7.0.1' + - 'azure/setup-helm@v5.0.1' + '.github/workflows/helm-publish.yml': + - 'actions/checkout@v7.0.1' + - 'azure/setup-helm@v5.0.1' + '.github/workflows/local-pr.yml': + - 'actions/checkout@v7.0.1' + '.github/workflows/python-build-artifacts.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-python@v7.0.0' + - 'actions/upload-artifact@v7.0.2' + - 'softprops/action-gh-release@v3.0.3' + '.github/workflows/python-package-check.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-python@v7.0.0' + '.github/workflows/python-pr-check.yml': + - '96daysleft/github-workflows@release' + - 'actions/checkout@v7.0.1' + - 'actions/setup-python@v7.0.0' + - 'the-pr-agent/pr-agent@v0.45.0' + '.github/workflows/vscode-ext-publish.yml': + - 'actions/checkout@v7.0.1' + - 'actions/github-script@v9.0.0' + - 'actions/setup-node@v7.1.0' + '.github/workflows/vscode-ext-release.yml': + - 'actions/attest-build-provenance@v4.2.2' + - 'actions/attest@v4.2.2' + - 'actions/checkout@v7.0.1' + - 'actions/github-script@v9.0.0' + - 'actions/setup-node@v7.1.0' + - 'anchore/sbom-action@v0.24.0' + '.github/workflows/vscode-pr-check.yml': + - '96daysleft/github-workflows@release' + - 'actions/checkout@v7.0.1' + - 'actions/setup-node@v7.1.0' + - 'the-pr-agent/pr-agent@v0.45.0' +dependencies: + '96daysleft/github-workflows@release': + ref: 'release' + commit: 'sha1-df1c4fa9af8b7954af13095b80474be4dd66c51d' + owner_id: 34142483 + repo_id: 1233815221 + uses: + - 'actions/github-script@v9' + 'actions/attest-build-provenance@v4.2.2': + ref: 'v4.2.2' + commit: 'sha1-4d101475d8b20a2381f78447822ac1eab6504dd8' + owner_id: 44036562 + repo_id: 760702757 + uses: + - 'actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d' + 'actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d': + ref: 'v4.2.1' + commit: 'sha1-508db95dd578ae2727ebd6217d5ba78e4fbda05d' + owner_id: 44036562 + repo_id: 760701061 + 'actions/attest@v4.2.2': + ref: 'v4.2.2' + commit: 'sha1-1e69f48acb82d1966a394da916b4c1698aa569d6' + owner_id: 44036562 + repo_id: 760701061 + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'actions/github-script@v9': + ref: 'v9' + commit: 'sha1-3a2844b7e9c422d3c10d287c895573f7108da1b3' + owner_id: 44036562 + repo_id: 205262760 + 'actions/github-script@v9.0.0': + ref: 'v9.0.0' + commit: 'sha1-3a2844b7e9c422d3c10d287c895573f7108da1b3' + owner_id: 44036562 + repo_id: 205262760 + 'actions/setup-node@v7.1.0': + ref: 'v7.1.0' + commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1' + owner_id: 44036562 + repo_id: 189476904 + 'actions/setup-python@v7.0.0': + ref: 'v7.0.0' + commit: 'sha1-5fda3b95a4ea91299a34e894583c3862153e4b97' + owner_id: 44036562 + repo_id: 192625525 + 'actions/upload-artifact@v7.0.2': + ref: 'v7.0.2' + commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' + owner_id: 44036562 + repo_id: 192625955 + 'anchore/sbom-action@v0.24.0': + ref: 'v0.24.0' + commit: 'sha1-e22c389904149dbc22b58101806040fa8d37a610' + owner_id: 16208487 + repo_id: 399925381 + 'azure/setup-helm@v5.0.1': + ref: 'v5.0.1' + commit: 'sha1-9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310' + owner_id: 6844498 + repo_id: 210310251 + 'docker/build-push-action@v7.4.0': + ref: 'v7.4.0' + commit: 'sha1-c3c9e263c25d99ce0380d002d59b67737d91b0dc' + owner_id: 5429470 + repo_id: 241092383 + 'docker/login-action@v4.6.0': + ref: 'v4.6.0' + commit: 'sha1-dbcb813823bdd20940b903addbd779551569679f' + owner_id: 5429470 + repo_id: 287743349 + 'docker/metadata-action@v6.2.0': + ref: 'v6.2.0' + commit: 'sha1-dc802804100637a589fabce1cb79ff13a1411302' + owner_id: 5429470 + repo_id: 306769011 + 'docker/setup-buildx-action@v4.4.1': + ref: 'v4.4.1' + commit: 'sha1-f87e5991a6d7451dcb8d9637bfbc97413f497069' + owner_id: 5429470 + repo_id: 288485773 + 'softprops/action-gh-release@v3.0.3': + ref: 'v3.0.3' + commit: 'sha1-efb35369e0ad2afab669f228072c1b0d510eae64' + owner_id: 2242 + repo_id: 204253808 + 'the-pr-agent/pr-agent@v0.45.0': + ref: 'v0.45.0' + commit: 'sha1-aaa29921481aaa171f8b62adeeaa4fbffb3ee7e3' + owner_id: 264152072 + repo_id: 662766482 diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index a0e71d7..ffe1cdf 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Docker Build and Push on: @@ -56,10 +58,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Log in to GitHub Container Registry - uses: docker/login-action@v4 + uses: docker/login-action@v4.6.0 with: registry: ${{ inputs.registry }} username: ${{ github.actor }} @@ -67,7 +69,7 @@ jobs: - name: Extract metadata id: meta - uses: docker/metadata-action@v6 + uses: docker/metadata-action@v6.2.0 with: images: ${{ inputs.registry }}/${{ inputs.image-name != '' && inputs.image-name || github.repository }} tags: | @@ -76,11 +78,11 @@ jobs: type=raw,value=latest - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 + uses: docker/setup-buildx-action@v4.4.1 - name: Build and push image id: build - uses: docker/build-push-action@v7 + uses: docker/build-push-action@v7.4.0 with: context: ${{ inputs.context }} file: ${{ inputs.dockerfile != '' && inputs.dockerfile || null }} @@ -97,7 +99,7 @@ jobs: provenance: mode=max - name: Attest build provenance - uses: actions/attest-build-provenance@v4 + uses: actions/attest-build-provenance@v4.2.2 with: subject-name: ${{ inputs.registry }}/${{ inputs.image-name != '' && inputs.image-name || github.repository }} subject-digest: ${{ steps.build.outputs.digest }} diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 8af1835..0ccc8f5 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Docker Build # Build-only counterpart to docker-build-push.yml for PR checks: no registry @@ -43,13 +45,13 @@ jobs: runs-on: ${{ inputs.runner }} steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 + uses: docker/setup-buildx-action@v4.4.1 - name: Build image - uses: docker/build-push-action@v7 + uses: docker/build-push-action@v7.4.0 with: context: ${{ inputs.context }} file: ${{ inputs.dockerfile != '' && inputs.dockerfile || null }} diff --git a/.github/workflows/helm-lint.yml b/.github/workflows/helm-lint.yml index 70071d9..602283c 100644 --- a/.github/workflows/helm-lint.yml +++ b/.github/workflows/helm-lint.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Helm Lint on: @@ -28,10 +30,10 @@ jobs: runs-on: ${{ inputs.runner }} steps: - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Install Helm - uses: azure/setup-helm@v5 + uses: azure/setup-helm@v5.0.1 - name: Lint chart env: diff --git a/.github/workflows/helm-publish.yml b/.github/workflows/helm-publish.yml index 81bff46..c0a8811 100644 --- a/.github/workflows/helm-publish.yml +++ b/.github/workflows/helm-publish.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Helm Chart Publish on: @@ -41,10 +43,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Install Helm - uses: azure/setup-helm@v5 + uses: azure/setup-helm@v5.0.1 - name: Log in to GitHub Container Registry env: diff --git a/.github/workflows/local-pr.yml b/.github/workflows/local-pr.yml new file mode 100644 index 0000000..780d522 --- /dev/null +++ b/.github/workflows/local-pr.yml @@ -0,0 +1,24 @@ +# This workflow is managed by gh actions-lock. + +name: PR Check + +# Lints this repo's own workflows (syntax, expressions, reusable-workflow +# inputs, shellcheck on run: scripts) on every pull request. + +on: + pull_request: + +permissions: + contents: read + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v7.0.1 + + - name: Run actionlint + uses: docker://rhysd/actionlint:1.7.7 + with: + args: -color diff --git a/.github/workflows/local-release.yml b/.github/workflows/local-release.yml index 7c8a45c..eaaecd2 100644 --- a/.github/workflows/local-release.yml +++ b/.github/workflows/local-release.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Release # On every merge/push to main, cut a new release tag by calling the diff --git a/.github/workflows/python-build-artifacts.yml b/.github/workflows/python-build-artifacts.yml index b849a63..4025946 100644 --- a/.github/workflows/python-build-artifacts.yml +++ b/.github/workflows/python-build-artifacts.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Build Artifacts on: @@ -30,7 +32,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -38,18 +40,18 @@ jobs: id: version run: | # github.ref_name is the tag name (e.g. v1.2.3) on a tag push - VERSION="${{ github.ref_name }}" + VERSION="${GITHUB_REF_NAME}" # Remove 'v' prefix if present CLEAN_VERSION="${VERSION#v}" - echo "version=${CLEAN_VERSION}" >> $GITHUB_OUTPUT - echo "full_tag=${VERSION}" >> $GITHUB_OUTPUT - echo "VERSION=${CLEAN_VERSION}" >> $GITHUB_ENV - echo "FULL_TAG=${VERSION}" >> $GITHUB_ENV + echo "version=${CLEAN_VERSION}" >> "$GITHUB_OUTPUT" + echo "full_tag=${VERSION}" >> "$GITHUB_OUTPUT" + echo "VERSION=${CLEAN_VERSION}" >> "$GITHUB_ENV" + echo "FULL_TAG=${VERSION}" >> "$GITHUB_ENV" echo "Release version: ${VERSION}" echo "Clean version: ${CLEAN_VERSION}" - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@v7.0.0 with: python-version-file: '.python-version' cache: pip @@ -67,13 +69,13 @@ jobs: python -m build - name: Store the distribution packages - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@v7.0.2 with: name: python-package-distributions path: dist/ - name: Create a Release - uses: softprops/action-gh-release@v3 + uses: softprops/action-gh-release@v3.0.3 with: tag_name: ${{ env.FULL_TAG }} name: ${{ env.FULL_TAG }} diff --git a/.github/workflows/python-package-check.yml b/.github/workflows/python-package-check.yml index dff940e..073d094 100644 --- a/.github/workflows/python-package-check.yml +++ b/.github/workflows/python-package-check.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Python Package Check # Builds the sdist and wheel, installs the wheel and checks it is usable: @@ -26,12 +28,12 @@ jobs: runs-on: ${{ inputs.runner }} steps: - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: fetch-depth: 0 # setuptools-scm needs the tags - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@v7.0.0 with: python-version-file: '.python-version' cache: pip diff --git a/.github/workflows/python-pr-check.yml b/.github/workflows/python-pr-check.yml index 6da5dfb..70845f8 100644 --- a/.github/workflows/python-pr-check.yml +++ b/.github/workflows/python-pr-check.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Python PR Check on: @@ -44,10 +46,10 @@ jobs: runs-on: ${{ inputs.runner }} steps: - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@v7.0.0 with: python-version-file: '.python-version' cache: pip @@ -73,7 +75,7 @@ jobs: - name: PR Agent action step if: ${{ inputs.run-pr-agent == true}} - uses: the-pr-agent/pr-agent@aaa29921481aaa171f8b62adeeaa4fbffb3ee7e3 # main as of 2026-09-09 + uses: the-pr-agent/pr-agent@v0.45.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} config.model: "anthropic/claude-haiku-4-5-20251001" diff --git a/.github/workflows/vscode-ext-publish.yml b/.github/workflows/vscode-ext-publish.yml index 29c7f63..24e499c 100644 --- a/.github/workflows/vscode-ext-publish.yml +++ b/.github/workflows/vscode-ext-publish.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Publish on: @@ -37,12 +39,12 @@ jobs: runs-on: ${{ inputs.runner }} steps: - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: fetch-depth: 1 - name: Set up Node.js - uses: actions/setup-node@v7 + uses: actions/setup-node@v7.1.0 with: node-version-file: '.nvmrc' @@ -64,7 +66,7 @@ jobs: # Lets a re-run skip a marketplace that already has this version. - name: Check if already published id: exists - uses: actions/github-script@v9 + uses: actions/github-script@v9.0.0 with: script: | const fs = require('fs'); diff --git a/.github/workflows/vscode-ext-release.yml b/.github/workflows/vscode-ext-release.yml index 25c402e..0847eef 100644 --- a/.github/workflows/vscode-ext-release.yml +++ b/.github/workflows/vscode-ext-release.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Vscode Extension Release on: @@ -51,7 +53,7 @@ jobs: version: ${{ steps.version.outputs.version }} steps: - name: Verify input - uses: actions/github-script@v9 + uses: actions/github-script@v9.0.0 env: VERSION_TYPE: ${{ inputs.version-type }} with: @@ -66,12 +68,12 @@ jobs: } - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: fetch-depth: 0 - name: Set up Node.js - uses: actions/setup-node@v7 + uses: actions/setup-node@v7.1.0 with: node-version-file: '.nvmrc' @@ -101,15 +103,15 @@ jobs: env: CHANGE_LOG_FILE: "CHANGELOG.md" run: | - npx auto-changelog --commit-limit false -p --output ${CHANGE_LOG_FILE} - git add ${CHANGE_LOG_FILE} + npx auto-changelog --commit-limit false -p --output "${CHANGE_LOG_FILE}" + git add "${CHANGE_LOG_FILE}" - name: Push commit and tag run: | git commit -m "Release version ${VERSION}" git push - git tag ${VERSION} - git push origin ${VERSION} + git tag "${VERSION}" + git push origin "${VERSION}" - name: Lint run: npm run lint @@ -133,20 +135,20 @@ jobs: run: npx vsce package --out "${EXTENSION_NAME}" - name: Generate SBOM - uses: anchore/sbom-action@v0 + uses: anchore/sbom-action@v0.24.0 with: path: . format: cyclonedx-json output-file: ${{ env.SBOM_NAME }} - name: Attest SBOM - uses: actions/attest@v4 + uses: actions/attest@v4.2.2 with: subject-path: ${{ env.EXTENSION_NAME }} sbom-path: ${{ env.SBOM_NAME }} - name: Attest build provenance - uses: actions/attest-build-provenance@v4 + uses: actions/attest-build-provenance@v4.2.2 with: subject-path: ${{ env.EXTENSION_NAME }} diff --git a/.github/workflows/vscode-pr-check.yml b/.github/workflows/vscode-pr-check.yml index 2850141..7065c47 100644 --- a/.github/workflows/vscode-pr-check.yml +++ b/.github/workflows/vscode-pr-check.yml @@ -1,3 +1,5 @@ +# This workflow is managed by gh actions-lock. + name: Vscode PR Check on: @@ -36,13 +38,13 @@ jobs: runs-on: ${{ inputs.runner }} steps: - name: Checkout repository - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: # Check out the PR branch itself (not the detached merge ref) so we can push back. ref: ${{ github.head_ref || github.ref_name }} - name: Set up Node.js - uses: actions/setup-node@v7 + uses: actions/setup-node@v7.1.0 with: node-version-file: '.nvmrc' cache: npm @@ -52,6 +54,8 @@ jobs: - name: Commit package-lock.json if it changed if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + env: + BRANCH: ${{ github.head_ref || github.ref_name }} run: | if git diff --quiet -- package-lock.json; then echo "package-lock.json unchanged" @@ -62,7 +66,7 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add package-lock.json git commit -m "chore: update package-lock.json [skip ci]" - git push origin HEAD:${{ github.head_ref || github.ref_name }} + git push origin "HEAD:${BRANCH}" - name: Run compile run: npm run compile @@ -94,7 +98,7 @@ jobs: - name: PR Agent action step if: ${{ inputs.run-pr-agent == true}} - uses: the-pr-agent/pr-agent@aaa29921481aaa171f8b62adeeaa4fbffb3ee7e3 # main as of 2026-09-09 + uses: the-pr-agent/pr-agent@v0.45.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} config.model: "anthropic/claude-haiku-4-5-20251001"