snapshot of https://github.com/grpc/grpc-go.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
codecov / upload (push) Failing after 13m59s
CodeQL / Analyze (push) Failing after 1s
Testing / vet-proto (push) Failing after 1s
Testing / tests (arm, latest) (push) Waiting to run
Testing / extras (latest) (push) Failing after 1s
Testing / static checks (latest-1) (push) Failing after 1s
Testing / tests (-race, latest) (push) Failing after 1s
Testing / tests (i386, latest) (push) Failing after 1s
Testing / tests (latest) (push) Failing after 1s
Testing / tests (latest-1) (push) Failing after 1s
Lock Threads / lock (push) Failing after 1s
govulncheck / govulncheck (.) (push) Failing after 1s
govulncheck / govulncheck (./cmd/protoc-gen-go-grpc) (push) Failing after 1s
govulncheck / govulncheck (./gcp/observability) (push) Failing after 1s
govulncheck / govulncheck (./security/advancedtls) (push) Failing after 1s
govulncheck / govulncheck (./stats/opencensus) (push) Failing after 1s
Stale bot / stale (push) Failing after 1s
Some checks failed
codecov / upload (push) Failing after 13m59s
CodeQL / Analyze (push) Failing after 1s
Testing / vet-proto (push) Failing after 1s
Testing / tests (arm, latest) (push) Waiting to run
Testing / extras (latest) (push) Failing after 1s
Testing / static checks (latest-1) (push) Failing after 1s
Testing / tests (-race, latest) (push) Failing after 1s
Testing / tests (i386, latest) (push) Failing after 1s
Testing / tests (latest) (push) Failing after 1s
Testing / tests (latest-1) (push) Failing after 1s
Lock Threads / lock (push) Failing after 1s
govulncheck / govulncheck (.) (push) Failing after 1s
govulncheck / govulncheck (./cmd/protoc-gen-go-grpc) (push) Failing after 1s
govulncheck / govulncheck (./gcp/observability) (push) Failing after 1s
govulncheck / govulncheck (./security/advancedtls) (push) Failing after 1s
govulncheck / govulncheck (./stats/opencensus) (push) Failing after 1s
Stale bot / stale (push) Failing after 1s
This commit is contained in:
60
.github/workflows/deps.yml
vendored
Normal file
60
.github/workflows/deps.yml
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
name: Dependency Changes
|
||||
|
||||
# Trigger on PRs.
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# Compare dependencies before and after this PR.
|
||||
dependencies:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
strategy:
|
||||
fail-fast: true
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: stable
|
||||
cache-dependency-path: "**/*go.sum"
|
||||
|
||||
# Run the commands to generate dependencies before and after and compare.
|
||||
- name: Compare dependencies
|
||||
run: |
|
||||
set -eu
|
||||
TEMP_DIR="$(mktemp -d)"
|
||||
# GITHUB_BASE_REF is set when the job is triggered by a PR.
|
||||
TARGET_REF="${GITHUB_BASE_REF:-master}"
|
||||
|
||||
mkdir "${TEMP_DIR}/after"
|
||||
scripts/gen-deps.sh "${TEMP_DIR}/after"
|
||||
|
||||
git checkout "origin/${TARGET_REF}"
|
||||
mkdir "${TEMP_DIR}/before"
|
||||
scripts/gen-deps.sh "${TEMP_DIR}/before"
|
||||
|
||||
echo -e " \nComparing dependencies..."
|
||||
cd "${TEMP_DIR}"
|
||||
# Run grep in a sub-shell since bash does not support ! in the middle of a pipe.
|
||||
if diff -u0 -r "before" "after" | bash -c '! grep -v "@@"'; then
|
||||
echo "No changes detected."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Print packages in `after` but not `before`.
|
||||
for x in $(ls -1 after | grep -vF "$(ls -1 before)"); do
|
||||
echo -e " \nDependencies of new package $x:"
|
||||
cat "after/$x"
|
||||
done
|
||||
|
||||
echo -e " \nChanges detected; exiting with error."
|
||||
exit 1
|
||||
Reference in New Issue
Block a user