File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
66# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
77
8- name : Java CI with Gradle
8+ name : Build Java
99
1010on :
1111 push :
2222 contents : read
2323
2424 steps :
25- - uses : actions/checkout@v4
26- - name : Set up JDK
27- uses : actions/setup-java@v4
25+ - uses : actions/checkout@v6
26+ - name : Set up Java
27+ uses : actions/setup-java@v5
2828 with :
2929 java-version : ' 21'
3030 distribution : ' temurin'
4747 #
4848 # - name: Build with Gradle
4949 # run: gradle build
50-
51- dependency-submission :
52-
53- runs-on : ubuntu-latest
54- permissions :
55- contents : write
56-
57- steps :
58- - uses : actions/checkout@v4
59- - name : Set up JDK
60- uses : actions/setup-java@v4
61- with :
62- java-version : ' 21'
63- distribution : ' temurin'
64-
65- # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
66- # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
67- - name : Generate and submit dependency graph
68- uses : gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+ name : Dependency Submission
9+
10+ on :
11+ push :
12+ branches : [ "main" ]
13+ workflow_dispatch :
14+
15+ jobs :
16+ dependency-submission :
17+
18+ runs-on : ubuntu-22.04
19+ permissions :
20+ contents : write
21+
22+ steps :
23+ - name : Checkout sources
24+ - uses : actions/checkout@v4
25+ - name : Set up Java
26+ uses : actions/setup-java@v4
27+ with :
28+ java-version : ' 21'
29+ distribution : ' temurin'
30+
31+ # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
32+ # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
33+ - name : Generate and submit dependency graph
34+ uses : gradle/actions/dependency-submission@v6
You can’t perform that action at this time.
0 commit comments