Skip to content

chore(deps): bump the github-actions group across 1 directory with 8 updates #30

chore(deps): bump the github-actions group across 1 directory with 8 updates

chore(deps): bump the github-actions group across 1 directory with 8 updates #30

name: Dependency CVE scan
# ROADMAP §6 N6.4 — weekly dependency-CVE scan over the Gradle dep tree.
# Uses GitHub's first-party dependency-review action (no API key needed) plus
# OSV-Scanner for an SBOM-level cross-check that goes beyond the GitHub
# vulnerability database. Runs:
# - Sundays 06:00 UTC (cron)
# - On any change to gradle/libs.versions.toml or build.gradle.kts files (PR + push)
# - On manual dispatch
#
# Failure threshold: any HIGH or CRITICAL CVE in a runtime-classpath dependency
# fails the workflow. MEDIUM and below are reported but non-blocking.
on:
schedule:
- cron: "0 6 * * 0"
pull_request:
paths:
- "gradle/libs.versions.toml"
- "gradle/tools.versions.toml"
- "**/build.gradle.kts"
- "settings.gradle.kts"
- ".github/workflows/dependency-scan.yml"
push:
branches: [ main, master ]
paths:
- "gradle/libs.versions.toml"
- "gradle/tools.versions.toml"
- "**/build.gradle.kts"
- "settings.gradle.kts"
workflow_dispatch:
permissions:
contents: read
pull-requests: write
security-events: write
jobs:
github-dependency-review:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
submodules: recursive
- name: Run dependency-review
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v4
with:
fail-on-severity: high
comment-summary-in-pr: on-failure
osv-scanner:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: 17
distribution: temurin
- name: Cache Gradle
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4
- name: Generate Gradle dependency tree
run: ./gradlew :app:dependencies --configuration releaseRuntimeClasspath > gradle-deps.txt
- name: Run OSV-Scanner against the lockfiles + dep tree
uses: google/osv-scanner-action/osv-scanner-action@9a498708959aeaef5ef730655706c5a1df1edbc2 # v2.3.8
with:
scan-args: |-
--recursive
--skip-git
./
continue-on-error: false
- name: Upload dep tree artifact
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: gradle-dep-tree
path: gradle-deps.txt