Skip to content

Merge pull request #94 from FwMotion/dependabot/maven/org.apache.mave… #21

Merge pull request #94 from FwMotion/dependabot/maven/org.apache.mave…

Merge pull request #94 from FwMotion/dependabot/maven/org.apache.mave… #21

name: Submit Dependency Tree Samples
on:
push:
branches:
- main
paths:
- '**/pom.xml'
jobs:
submit-dependency-tree:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '21'
- name: Determine Home Directory
id: find-home
run: |
echo "home=$HOME" >> $GITHUB_OUTPUT
- name: Cache Maven Local Repo
uses: actions/cache@v3
with:
path: ${{ steps.find-home.outputs.home }}/.m2/repository
key: ${{ runner.os }}-${{ runner.arch }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-maven-
- name: Set Up Maven Repo Filters
run: |
mkdir -p ${{ steps.find-home.outputs.home }}/.m2/repository/.remoteRepositoryFilters/
cp -av ${{ github.workspace }}/.mvn/filters/*.txt ${{ steps.find-home.outputs.home }}/.m2/repository/.remoteRepositoryFilters/
- name: Submit Dependency Snapshot
uses: advanced-security/maven-dependency-submission-action@v3