Build(deps): Bump google.golang.org/api from 0.291.0 to 0.292.0 - #1234
Conversation
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.291.0 to 0.292.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.291.0...v0.292.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-version: 0.292.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: dependabot[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: dependabot[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @dependabot[bot]. Thanks for your PR. I'm waiting for a openshift-online member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
WalkthroughThe pull request updates two Go module dependencies in ChangesGo dependency updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@go.mod`:
- Line 30: Update the release workflow’s artifact-upload job to generate and
publish enforced provenance attestations and Sigstore/cosign signatures for
every binary and SHA-256 file, ensuring signing and attestation failures block
the release. If these controls are provided externally instead, document the
authoritative control and verification process alongside the release
configuration.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift-online/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 17278997-3cde-499f-b813-3f8d556741a5
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (1)
go.mod
| golang.org/x/term v0.45.0 | ||
| golang.org/x/text v0.40.0 | ||
| google.golang.org/api v0.291.0 | ||
| google.golang.org/api v0.292.0 |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
check_osv() {
local module="$1"
local version="$2"
local response
response="$(
curl -fsS -X POST 'https://api.osv.dev/v1/query' \
-H 'Content-Type: application/json' \
-d "$(jq -n \
--arg name "$module" \
--arg version "$version" \
'{package: {name: $name, ecosystem: "Go"}, version: $version}')"
)"
if jq -e '((.vulns // []) | length) > 0' <<<"$response" >/dev/null; then
printf '%s@%s has OSV findings\n' "$module" "$version"
jq '.vulns[] | {id, summary, affected}' <<<"$response"
return 1
fi
printf '%s@%s: no matching OSV records\n' "$module" "$version"
}
check_osv \
'google.golang.org/api' \
'v0.292.0'
check_osv \
'google.golang.org/genproto/googleapis/rpc' \
'v0.0.0-20260803160001-6ac0973c030d'
rg -n -F \
'google.golang.org/api v0.292.0 h1:Ewiwo/GTtiaPZSNAZQUcWLh8AYDEoPmIXyJfeoTSMHU=' \
go.sum
rg -n -F \
'google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d h1:IL4hdHzcUv2l/gcg98/Rj3FbtE6axwqslOW8SW0C+S0=' \
go.sum
rg -n -i --hidden --glob '!.git/**' \
'sbom|cyclonedx|syft|slsa|provenance|attest|cosign|sigstore' . || trueRepository: openshift-online/ocm-cli
Length of output: 599
🏁 Script executed:
#!/usr/bin/env bash
set -u
printf '%s\n' '--- dependency declarations and checksums ---'
cat -n go.mod | sed -n '20,36p;142,156p'
rg -n -F \
-e 'google.golang.org/api v0.292.0' \
-e 'google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d' \
go.mod go.sum
printf '%s\n' '--- repository policy and dependency metadata files ---'
git ls-files | rg -i '(^|/)(license|copying|notice|contributing|security|policy|governance|makefile|github/workflows/|hack/build_hermetic_image\.sh$)' || true
rg -n -i --hidden --glob '!.git/**' \
'license|third.party|dependency.policy|allowed.?license|sbom|cyclonedx|syft|slsa|provenance|attest|cosign|sigstore|artifact signing|actions/upload-artifact' \
. || true
printf '%s\n' '--- hermetic image build context ---'
cat -n hack/build_hermetic_image.sh | sed -n '1,120p'
printf '%s\n' '--- Go proxy metadata ---'
for module_version in \
'google.golang.org/api/@v/v0.292.0.mod' \
'google.golang.org/api/@v/v0.292.0.info' \
'google.golang.org/genproto/googleapis/rpc/@v/v0.0.0-20260803160001-6ac0973c030d.mod' \
'google.golang.org/genproto/googleapis/rpc/@v/v0.0.0-20260803160001-6ac0973c030d.info'
do
printf '%s\n' "--- $module_version"
curl -fsS "https://proxy.golang.org/$module_version" || true
printf '\n'
done
printf '%s\n' '--- OSV exact-version queries ---'
python3 - <<'PY'
import json, urllib.request
queries = [
("google.golang.org/api", "v0.292.0"),
("google.golang.org/genproto/googleapis/rpc",
"v0.0.0-20260803160001-6ac0973c030d"),
]
for name, version in queries:
req = urllib.request.Request(
"https://api.osv.dev/v1/query",
data=json.dumps({
"package": {"name": name, "ecosystem": "Go"},
"version": version,
}).encode(),
headers={"Content-Type": "application/json"},
method="POST",
)
with urllib.request.urlopen(req) as response:
data = json.load(response)
print(name, version, "findings=", len(data.get("vulns", [])))
for vuln in data.get("vulns", []):
print(vuln.get("id"), vuln.get("summary"))
PYRepository: openshift-online/ocm-cli
Length of output: 50380
🏁 Script executed:
# Awaiting capability results.Repository: openshift-online/ocm-cli
Length of output: 162
🏁 Script executed:
#!/usr/bin/env bash
set -u
printf '%s\n' '--- focused dependency declarations ---'
sed -n '27,32p;147,152p' go.mod
rg -n -F \
-e 'google.golang.org/api v0.292.0' \
-e 'google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d' \
go.sum
printf '%s\n' '--- module metadata and retractions ---'
for path in \
'google.golang.org/api/@v/v0.292.0.mod' \
'google.golang.org/api/@v/v0.292.0.info' \
'google.golang.org/genproto/googleapis/rpc/@v/v0.0.0-20260803160001-6ac0973c030d.mod' \
'google.golang.org/genproto/googleapis/rpc/@v/v0.0.0-20260803160001-6ac0973c030d.info'
do
printf '%s\n' "--- $path"
curl -fsS "https://proxy.golang.org/$path"
printf '\n'
done
printf '%s\n' '--- dependency license files ---'
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
for spec in \
'api v0.292.0' \
'genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d'
do
name="${spec%% *}"
version="${spec#* }"
encoded="$(printf '%s' "$name" | sed 's|/|%2F|g')"
zip="$tmpdir/$(printf '%s' "$name" | tr / _).zip"
if curl -fsS "https://proxy.golang.org/google.golang.org/$encoded/@v/$version.zip" -o "$zip"; then
printf '%s\n' "--- google.golang.org/$name $version"
unzip -Z1 "$zip" | grep -Ei '(^|/)(license|copying|notice)([^/]*)?$' | head -20
for f in $(unzip -Z1 "$zip" | grep -Ei '(^|/)(license|copying|notice)([^/]*)?$' | head -5); do
printf '%s\n' "[$f]"
unzip -p "$zip" "$f" | head -8
done
else
printf '%s\n' "unable to download $name $version"
fi
done
printf '%s\n' '--- SBOM, provenance, and signing controls ---'
rg -n -i --hidden --glob '!.git/**' --glob '!*.go' \
'sbom|cyclonedx|syft|slsa|provenance|attest|cosign|sigstore|sign(ing|ed)? artifact|upload-artifact' \
. 2>/dev/null | head -200 || true
printf '%s\n' '--- hermetic image SBOM command ---'
sed -n '55,85p' hack/build_hermetic_image.shRepository: openshift-online/ocm-cli
Length of output: 5941
🏁 Script executed:
# Awaiting focused capability results.Repository: openshift-online/ocm-cli
Length of output: 162
🏁 Script executed:
#!/usr/bin/env bash
set -u
printf '%s\n' '--- tracked CI and release files ---'
git ls-files | grep -E '(^|/)\.github/workflows/|(^|/)(release|publish|build|image|artifact|sign)' | head -200 || true
printf '%s\n' '--- tracked supply-chain configuration ---'
git grep -n -I -E 'provenance|attest|cosign|sigstore|slsa|rekor|fulcio|sign-artifacts|signing' -- ':!*.sum' ':!README.md' 2>/dev/null || true
printf '%s\n' '--- google.golang.org/api license metadata ---'
curl -fsSL 'https://pkg.go.dev/google.golang.org/api@v0.292.0?tab=licenses' |
grep -Eio 'BSD[- ]3[- ]Clause|Apache[- ]2\.0|MIT' | sort -u | head -20 || true
printf '%s\n' '--- module archive license names ---'
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
url='https://proxy.golang.org/google.golang.org/api/@v/v0.292.0.zip'
if curl -fsSL "$url" -o "$tmpdir/api.zip"; then
unzip -Z1 "$tmpdir/api.zip" |
grep -Ei '(^|/)(license|copying|notice)([^/]*)?$' |
head -20
fiRepository: openshift-online/ocm-cli
Length of output: 653
🏁 Script executed:
# Awaiting final capability results.Repository: openshift-online/ocm-cli
Length of output: 162
🏁 Script executed:
#!/usr/bin/env bash
set -u
for file in .github/workflows/publish-release.yaml hack/build_image.sh hack/build_release_images.sh hack/build_hermetic_image.sh; do
if [ -f "$file" ]; then
printf '%s\n' "--- $file"
wc -l "$file"
cat -n "$file" | head -240
fi
doneRepository: openshift-online/ocm-cli
Length of output: 13933
🏁 Script executed:
# Awaiting release workflow results.Repository: openshift-online/ocm-cli
Length of output: 162
Add release provenance and artifact signing.
The versions are pinned, their module and go.mod hashes are in go.sum, OSV reports no findings, and the versions are not retracted. The Apache-2.0 repository license is compatible with the BSD-3-Clause and Apache-2.0 dependency licenses. hack/build_hermetic_image.sh generates a CycloneDX SBOM.
The release workflow only uploads binaries and SHA-256 files. Add enforced provenance attestations and Sigstore/cosign signatures for release artifacts, or document the external control that provides them, before merging.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@go.mod` at line 30, Update the release workflow’s artifact-upload job to
generate and publish enforced provenance attestations and Sigstore/cosign
signatures for every binary and SHA-256 file, ensuring signing and attestation
failures block the release. If these controls are provided externally instead,
document the authoritative control and verification process alongside the
release configuration.
Source: Path instructions
Bumps google.golang.org/api from 0.291.0 to 0.292.0.
Release notes
Sourced from google.golang.org/api's releases.
Changelog
Sourced from google.golang.org/api's changelog.
Commits
8631dd4chore(main): release 0.292.0 (#3683)256abd7feat(all): auto-regenerate discovery clients (#3688)3f73f91chore(all): update all (#3686)57047fbfeat(all): auto-regenerate discovery clients (#3687)8140ddffeat(all): auto-regenerate discovery clients (#3685)c9bc778feat(all): auto-regenerate discovery clients (#3684)b70719bfeat(all): auto-regenerate discovery clients (#3682)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by CodeRabbit