Skip to content

Commit

Permalink
Dependabot Configuration (#327)
Browse files Browse the repository at this point in the history
* remove snyk dependency scanning workflow
* add dependency-submission workflow
  • Loading branch information
deleonenriqueta authored Oct 22, 2024
1 parent c72d6eb commit ae5f90d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 27 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Workflow: Dependency Graph Submission and Vulnerability Reporting
#
# Trigger: This workflow runs on every merge to the main branch.
#
# Purpose: It generates and submits a dependency graph to the GitHub Dependency Submission API. The graph is used to
# trigger Dependabot Alerts for vulnerable dependencies, and to populate the Dependency Graph insights view in GitHub.
#
# Excludes:
# - Test-only dependencies
# - Module with name 'integration_test' and 'telemetry_examples'

name: Dependency Submission

on:
push:
branches: [ 'main' ]

permissions:
contents: write

jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4
- name: Setup Java
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # pin@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@d156388eb19639ec20ade50009f3d199ce1e2808 # pin@v4
with:
dependency-graph-exclude-configurations: '.*[Tt]est(Compile|Runtime)Classpath'
dependency-graph-exclude-projects: ':integration_test, :telemetry_examples'
build-scan-publish: true
build-scan-terms-of-use-url: "https://gralde.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
27 changes: 0 additions & 27 deletions .github/workflows/snyk_scan.yml

This file was deleted.

0 comments on commit ae5f90d

Please sign in to comment.