From bb907e4ff6bc264e4d1d481649d6196c01b5d2da Mon Sep 17 00:00:00 2001 From: arencro <109680198+arencro@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:04:55 -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..8496b6a --- /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: '["JavaScript"]' + 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 d73e666393f1203bee8366f26cc55e232994626b Mon Sep 17 00:00:00 2001 From: arencro <109680198+arencro@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:04:57 -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