Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/python-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,13 @@ name: Python Security
on:
workflow_call:
inputs:
publish-reports:
description: Publish the generated reports to the Security Operation Center. Defaults to false.
default: false
required: false
type: boolean
report-retention-days:
description: "Duration in days to preserve reports."
required: false
default: "5"
type: string
working-directory:
description: Relative path under $GITHUB_WORKSPACE where the project is located.
default: .
required: false
type: string

jobs:
secrets:
name: Secret scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Run secret scanner
uses: equisoft-actions/scan-secrets@v1

sast:
name: SAST
runs-on: ubuntu-latest
Expand All @@ -44,20 +22,3 @@ jobs:
with:
languages: python
working-directory: ${{ inputs.working-directory }}

sbom:
name: SBOM
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Python
uses: equisoft-actions/setup-python@v1

- name: Generate SBOM
uses: equisoft-actions/pipenv-sbom@v2
with:
publish: ${{ inputs.publish-reports }}
report-retention-days: ${{ inputs.report-retention-days }}
working-directory: ${{ inputs.working-directory }}