Skip to content

Commit

Permalink
ci: unmanaged dependency check
Browse files Browse the repository at this point in the history
This is is the implementation for the one I got your review in
go/cloud-sdk-java-dependency-governance-design. This check will
avoid accidentally adding a third-party dependency.

b/320677249
  • Loading branch information
suztomo committed Feb 5, 2024
1 parent abd2739 commit 3227332
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/unmanaged_dependency_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
name: Unmanaged dependency check
jobs:
unmanaged_dependency_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Install modules
shell: bash
run: |
# No argument to build.sh installs the modules in local Maven
# repository
.kokoro/build.sh
- name: Unmanaged dependency check
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@unmanaged-dependencies-check-latest
with:
bom-path: google-cloud-pubsub-bom/pom.xml

0 comments on commit 3227332

Please sign in to comment.