Repository navigation
Restore smoke compatibility with the latest Dependabot CLI - #329
Open
loganvolkers wants to merge 2 commits into
Open
loganvolkers wants to merge 2 commits into
loganvolkers wants to merge 2 commits into
Conversation
Enable automatic toolchain selection only while installing Dependabot CLI, which can require a newer Go version than the proxy module. Keep the proxy's Go version and build behavior unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use the Dependabot CLI's documented development-image bypass because the proxy under test has no release attestation. Keep this setting confined to the smoke invocation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The verification bypass also affects updater images and requires explicit human acceptance of its broader security impact.
1 open issue
What changed in this PR
Updates smoke workflow bootstrapping without changing the proxy’s Go version or dependencies.
Changes:
- Enables automatic Go toolchain selection only during Dependabot CLI installation.
- Disables image verification for smoke execution, with a comment explaining the locally built proxy.
| File | Description |
|---|---|
.github/workflows/smoke.yml |
Adds the step-local toolchain override and image-verification bypass. |
Review effort: Balanced
Author
|
@v-robaiken and @v-abhishekbhaskar heads up that the smoke tests were failing so I've attempted to make them compatible again, but I've left the nix failure to you all since it seems trickier. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What are you trying to accomplish?
Restore smoke-workflow compatibility with Dependabot CLI v1.96.0 while preserving the existing latest-CLI policy and the proxy's production Go/module/build behavior:
GOTOOLCHAIN=auto.--skip-image-verificationdevelopment-image flag when testing the locally built proxy, which has no release attestation.The original failing job stopped at CLI installation: CLI v1.96.0 requires Go >=1.27.0, but the workflow installs the proxy module's Go 1.26.0 with
GOTOOLCHAIN=local.After fixing installation, the first run of this PR successfully installed the CLI, downloaded the caches, and built the proxy in all 101 matrix jobs. Smoke startup then encountered the CLI's newly enabled image-verification policy. The CLI reports these startup failures as empty-output expectation diffs, masking the underlying startup error.
This workflow-only PR is based directly on
mainand does not include or modify the GCP token-lifetime changes in #328.Anything you want to highlight for special attention from reviewers?
Go's supported toolchain switching handles
go install package@versionwithout changing the calling repository'sgo.modorgo.sum. The environment override applies only to CLI installation; the proxy's Go version and Dockerfile remain unchanged.CLI v1.96.0 introduced image-attestation verification in dependabot/cli#675. Its documented development bypass is necessary because this workflow must execute the proxy image it just built, rather than a signed release image. The flag disables updater, proxy, and configured Collector verification for this smoke invocation, not just proxy verification. It is not applied to any production command or other workflow.
Remaining independent smoke-data failure: the Nix job in the follow-up run now starts the proxy/updater and completes the update, but fails its expected-output comparison. The public
tests/smoke-nix.yamlfixture expects flake-utils commit11707dc2f618dd54ca8739b309ec4fc024de578b; an uncachedGET /repos/numtide/flake-utils/commits?per_page=100&sha=HEADselects live commitb7a79d3fea1e214f6d668d521cecec0c01e26544instead. The job reports only11/28 calls cached (39%). Today's earlier green Nix job used the same updater-image digest and request URL, but selected the expected older commit. This PR does not skip Nix or rewrite its expectations; repairing the external fixture/cache reproducibility is separate from these CLI compatibility changes. The overall smoke run must not be considered fully green on this evidence.How will you know you've accomplished your goal?
Bootstrap checks used a checksum-verified Go 1.26.0 distribution on macOS arm64 with isolated caches and public module/checksum services:
GOTOOLCHAIN=local go install github.com/dependabot/cli/cmd/dependabot@latest— reproduced the original minimum-Go-version failure (exit 1, CLI v1.96.0).GOTOOLCHAIN=auto go install github.com/dependabot/cli/cmd/dependabot@latest— passed (exit 0), automatically selecting Go 1.27.2 and installing CLI v1.96.0.GOTOOLCHAIN=local go version -m "$GOBIN/dependabot"and"$GOBIN/dependabot" --help— passed; confirmed the installed CLI version/toolchain and executable startup.Follow-up checks used the public CLI v1.96.0 macOS arm64 release binary, verified against its GitHub release asset SHA-256:
bin/dependabot test --skip-image-verification --help— passed; the documented flag is accepted.python3 verify_development_image.py bin/dependabot— passed an ad hoc session-local regression harness with an isolated loopback Docker stub and no credentials or real containers. Without the flag,--pull=falserejects the unsigned local image with the explicit development-flag diagnostic. With the flag, the CLI prints its verification-disabled warning and reaches the deliberately blocked container-network setup. This is a startup-path check, not a full Docker smoke test.yamllint .github/workflows/smoke.yml(1.37.1) — passed.actionlint -shellcheck= .github/workflows/smoke.yml(1.7.12) — passed syntax/action validation.mainwith no new findings.zizmor --offline --persona=regular --min-severity=medium --min-confidence=high .github/workflows/smoke.yml(1.26.1) — passed; no findings at these thresholds.git diff --check origin/main...HEADandgit diff --exit-code origin/main -- go.mod go.sum Dockerfile— passed.bash -n— passed; only the two intended CLI compatibility settings change workflow behavior.The regular CI run for follow-up commit 21367db passed. The naturally triggered smoke run executes the ecosystem tests, with the independent Nix expectation mismatch described above. No diagnostic reruns were requested.
Not run locally:
script/testor the full Docker smoke matrix, becausedocker versionconfirms no reachable Docker daemon. Online zizmor audits were not run.Checklist