Skip to content

Commit 02b8b0b

Browse files
Merge pull request #100 from newrelic/update-dependabot-config
Dependabot Configuration
2 parents 389cd8d + 168e6e9 commit 02b8b0b

File tree

2 files changed

+39
-29
lines changed

2 files changed

+39
-29
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Workflow: Dependency Graph Submission and Vulnerability Reporting
2+
#
3+
# Trigger: This workflow runs on every merge to the main branch.
4+
#
5+
# Purpose: It generates and submits a dependency graph to the GitHub Dependency Submission API. The graph is used to
6+
# trigger Dependabot Alerts for vulnerable dependencies, and to populate the Dependency Graph insights view in GitHub.
7+
#
8+
# Excludes:
9+
# - Test-only dependencies
10+
# - Modules named `core-test` and `examples`
11+
12+
name: Dependency Submission
13+
14+
on:
15+
push:
16+
branches: [ 'main' ]
17+
18+
permissions:
19+
contents: write
20+
21+
jobs:
22+
dependency-submission:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout sources
26+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4
27+
- name: Setup Java
28+
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # pin@v4
29+
with:
30+
distribution: 'temurin'
31+
java-version: '11'
32+
- name: Generate and submit dependency graph
33+
uses: gradle/actions/dependency-submission@d156388eb19639ec20ade50009f3d199ce1e2808 # pin@v4
34+
with:
35+
dependency-graph-exclude-configurations: '.*[Tt]est(Compile|Runtime)Classpath'
36+
dependency-graph-exclude-projects: ':core-test, :examples'
37+
build-scan-publish: true
38+
build-scan-terms-of-use-url: "https://gralde.com/help/legal-terms-of-use"
39+
build-scan-terms-of-use-agree: "yes"

.github/workflows/snyk_scan.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)