diff --git a/.github/workflows/devcontainer-prebuild.yaml b/.github/workflows/devcontainer-prebuild.yaml index 86d6831c..a3c0cde3 100644 --- a/.github/workflows/devcontainer-prebuild.yaml +++ b/.github/workflows/devcontainer-prebuild.yaml @@ -72,8 +72,12 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Install Dev Container CLI - # renovate: datasource=npm depName=@devcontainers/cli - run: npm install -g @devcontainers/cli@0.87.0 + env: + # The shared workflow custom manager tracks an annotated `*version:` + # key; it doesn't read versions inside `run:` scripts. + # renovate: datasource=npm depName=@devcontainers/cli + devcontainers_cli_version: "0.87.0" + run: npm install -g "@devcontainers/cli@${devcontainers_cli_version}" - name: Set up Docker Buildx # push-by-digest=true (used in the pre-build step) requires the diff --git a/renovate.json5 b/renovate.json5 index 3359a7b2..fd10b9b6 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -13,4 +13,18 @@ "github>DevSecNinja/.github//.renovate/packageRules.json5", "github>DevSecNinja/.github//.renovate/semanticCommits.json5", ], + customManagers: [ + { + // The devcontainer manager doesn't read feature options, so the Pester + // pin of the PowerShell feature, e.g. "modules": "Pester==5.7.1", needs + // its own manager. Pester is published on the PowerShell Gallery, a + // NuGet v2 feed. + customType: "regex", + description: "Update the Pester pin of the devcontainer PowerShell feature", + managerFilePatterns: ["/^\\.devcontainer/devcontainer(-prebuild)?\\.json$/"], + matchStrings: ["\"modules\":\\s*\"(?Pester)==(?[^\"]+)\""], + datasourceTemplate: "nuget", + registryUrlTemplate: "https://www.powershellgallery.com/api/v2/", + }, + ], } diff --git a/tests/bash/run-tests.sh b/tests/bash/run-tests.sh index 7873d3b5..b57dd38f 100755 --- a/tests/bash/run-tests.sh +++ b/tests/bash/run-tests.sh @@ -69,7 +69,8 @@ if ! command -v bats >/dev/null 2>&1; then if [ "${CI_MODE}" = true ]; then # Install in CI mode echo "Installing Bats from GitHub..." - BATS_VERSION="1.13.0" + # renovate: datasource=github-releases depName=bats-core/bats-core + BATS_VERSION="1.14.0" git clone --depth 1 --branch "v${BATS_VERSION}" https://github.com/bats-core/bats-core.git /tmp/bats-core cd /tmp/bats-core sudo ./install.sh /usr/local