From a128c7cf5b8d8ba9ef1003853f587f9909379a60 Mon Sep 17 00:00:00 2001 From: arencro <109680198+arencro@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:34:40 -0600 Subject: [PATCH 1/2] Adding ProdSec consolidated workflow files --- .github/workflows/Prodsec_Workflow.yml | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/Prodsec_Workflow.yml diff --git a/.github/workflows/Prodsec_Workflow.yml b/.github/workflows/Prodsec_Workflow.yml new file mode 100644 index 0000000..f673e72 --- /dev/null +++ b/.github/workflows/Prodsec_Workflow.yml @@ -0,0 +1,33 @@ +# Product Security tooling +# Runs Manifest SBOM generation and Dependency Check Scanning +--- +name: Product Security Tooling + +'on': + pull_request: + release: + types: + - created + +jobs: + sbom_generator: + if: github.event_name == 'release' + uses: HealthByRo/ro-github-actions/.github/workflows/manifest_sbom.yml@main + with: + languages: '["Python"]' + secrets: + ssh_key: ${{ secrets.SSH_RO_CI_DEPLOY }} + manifest_key: ${{ secrets.MANIFEST_SBOM }} + + dependency-check: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Dependency Check + uses: actions/dependency-review-action@v3 + with: + fail-on-severity: critical + license-check: false From d025b81ec5346b0a118331d776ff960001e5438d Mon Sep 17 00:00:00 2001 From: arencro <109680198+arencro@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:34:41 -0600 Subject: [PATCH 2/2] Adding additional Prodsec workflow files --- .github/workflows/cve2epss.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/cve2epss.yml diff --git a/.github/workflows/cve2epss.yml b/.github/workflows/cve2epss.yml new file mode 100644 index 0000000..7b0ec9a --- /dev/null +++ b/.github/workflows/cve2epss.yml @@ -0,0 +1,21 @@ +# CVE2EPSS Alert Parser +# Tool to open and close Dependabot alerts based on EPSS score +--- +name: CVE2EPSS + +'on': + workflow_dispatch: + schedule: + - cron: '0 0 * * 0' + +jobs: + cve2epss: + runs-on: ubuntu-latest + + steps: + - name: CVE2EPSS + uses: HealthByRo/prodsec-tools/actions/cve2Epss@main + with: + TOKEN: ${{ secrets.GHAS_GITHUB_TOKEN }} + EPSS_SCORE: '0.003' + REPO: ${{ github.repository }} \ No newline at end of file