-
Notifications
You must be signed in to change notification settings - Fork 51
47 lines (39 loc) · 1.31 KB
/
dependency-submission.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Dependency Submission
on:
workflow_dispatch:
push:
branches: ["main", "master"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: gradle
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
# Generates and submits a dependency graph for a Gradle project,
# allowing GitHub to alert about reported vulnerabilities in project dependencies.
# The following workflow will generate a dependency graph for a
# Gradle project and submit it immediately to the repository via
# the Dependency Submission API.
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4