Skip to content

Commit

Permalink
ci: unmanaged dependency check (#2396)
Browse files Browse the repository at this point in the history
* ci: unmanaged dependency check

This check avoids accidentally adding 3rd party dependencies
go/cloud-sdk-java-dependency-governance-design.

* unmanaged_dependency_check as required check
  • Loading branch information
suztomo authored Feb 8, 2024
1 parent 559d489 commit b7f6eb3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ branchProtectionRules:
- 'Kokoro - Test: Java GraalVM Native Image'
- 'Kokoro - Test: Java 17 GraalVM Native Image'
- javadoc
- unmanaged_dependency_check
- pattern: 1.113.14-sp
isAdminEnforced: true
requiredApprovingReviewCount: 1
Expand Down
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-storage-bom/pom.xml

0 comments on commit b7f6eb3

Please sign in to comment.