From 5ec26712108e09ff5a67c9ca245b37521b8124f4 Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Tue, 16 Jan 2024 11:55:16 +0100 Subject: [PATCH] ci: submit Gradle dependencies to GH dependency graph --- .../workflows/submit-gradle-dependencies.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/submit-gradle-dependencies.yml diff --git a/.github/workflows/submit-gradle-dependencies.yml b/.github/workflows/submit-gradle-dependencies.yml new file mode 100644 index 000000000000..582263ee5a6f --- /dev/null +++ b/.github/workflows/submit-gradle-dependencies.yml @@ -0,0 +1,24 @@ +name: Submit dependencies to GitHub Dependency Graph +on: + push: + branches: + - trunk + - release/* +permissions: + contents: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + - run: cp gradle.properties-example gradle.properties + - name: Setup Gradle to generate and submit dependency graphs + uses: gradle/gradle-build-action@v2 + with: + dependency-graph: generate-and-submit + - name: Generate the dependency graph which will be submitted post-job + run: ./gradlew dependencies