Skip to content

Report Security Issues #1086

Report Security Issues

Report Security Issues #1086

name: Report Security Issues for Repository
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
jobs:
report_security_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 11
cache: "maven"
- name: Install Projects
# This fixes https://github.com/exasol/project-keeper/issues/330
run: |
mvn --batch-mode install -DskipTests \
-Dproject-keeper.skip=true -Dossindex.skip=true -Dmaven.javadoc.skip=true \
-Djacoco.skip=true -Derror-code-crawler.skip=true -Dreproducible.skip=true
- name: Generate ossindex report
run: |
mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:audit \
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit-aggregate \
-Dossindex.reportFile=$(pwd)/ossindex-report.json \
-Dossindex.fail=false
- name: Report Security Issues
uses: exasol/python-toolbox/.github/actions/security-issues@main
with:
format: "maven"
command: "cat ossindex-report.json"
github-token: ${{ secrets.GITHUB_TOKEN }}