Skip to content

File tree

3 files changed

+49
-3
lines changed

3 files changed

+49
-3
lines changed

Diff for: .github/workflows/codeql.yml

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ jobs:
5656
java-version: 11
5757
if: matrix.language == 'java'
5858

59+
# Submit dependency graph Step 1
60+
- name: Generate and save dependency graph
61+
uses: gradle/actions/dependency-submission@v3
62+
with:
63+
dependency-graph: generate-and-upload
64+
5965
# https://docs.gradle.org/current/userguide/performance.html
6066
- name: Build
6167
run: ./gradlew clean assemble compileTestJava --no-build-cache --parallel --daemon

Diff for: .github/workflows/dependency-graph.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
# https://github.com/gradle/actions/blob/main/docs/dependency-submission.md#usage-with-pull-requests-from-public-forked-repositories
19+
name: Submit dependency graph
20+
21+
on:
22+
workflow_run:
23+
workflows: [ 'CodeQL' ]
24+
types: [ completed ]
25+
26+
permissions:
27+
contents: write
28+
29+
jobs:
30+
submit-dependency-graph:
31+
runs-on: ubuntu-latest
32+
steps:
33+
# Submit dependency graph Step 2
34+
- name: Download and submit dependency graph
35+
uses: gradle/actions/dependency-submission@v3
36+
with:
37+
dependency-graph: download-and-submit # Download saved dependency-graph and submit

Diff for: .github/workflows/license.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@ name: 'License Check'
1919
on: [ pull_request ]
2020

2121
permissions:
22-
contents: write
22+
contents: read
2323

2424
jobs:
2525
dependency-review:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: 'Checkout Repository'
2929
uses: actions/checkout@v4
30+
3031
- name: 'Check license header'
3132
uses: apache/skywalking-eyes@main
32-
- name: 'Generate and submit dependency graph'
33-
uses: gradle/actions/dependency-submission@v3
33+
3434
- name: 'Dependency Review'
3535
uses: actions/dependency-review-action@v4
3636
with:
37+
# Post 'Submit dependency graph'
38+
retry-on-snapshot-warnings: true
39+
retry-on-snapshot-warnings-timeout: 600
3740
vulnerability-check: false
3841
license-check: true
3942
# Incompatible licenses addressed here: https://www.apache.org/legal/resolved.html

0 commit comments

Comments
 (0)