Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-go.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pre-commit

on: [pull_request, workflow_call]
on: [workflow_call]

jobs:
pre-commit:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-node.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pre-commit

on: [pull_request, workflow_call]
on: [workflow_call]

jobs:
pre-commit:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pre-commit

on: [pull_request, workflow_call]
on: [workflow_call]

jobs:
pre-commit:
Expand Down
35 changes: 20 additions & 15 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,20 @@ on:
workflow_call:
inputs:
ENABLE_BANDIT:
description: 'Enable the Bandit scanner - useful for Python only'
description: 'Enable the Bandit scanner - useful for Python only (deprecated, use ENABLE_SAST)'
default: true
type: boolean
ENABLE_SAST:
description: 'Enable SAST scanning with Semgrep'
default: true
type: boolean
jobs:
build:
name: Check for vulnerabilities
runs-on: ubuntu-24.04
trivy:
name: Trivy scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Security check - Bandit
uses: mdegis/bandit-action@v1.0.1
if: ${{ inputs.ENABLE_BANDIT }}
with:
path: "."
level: high
confidence: high
skips: B101

uses: actions/checkout@v5

- name: Write Trivy config file
run: |
Expand All @@ -47,3 +41,14 @@ jobs:
severity: 'MEDIUM,CRITICAL,HIGH'
exit-code: '1'
trivy-config: 'trivy.conf'


semgrep:
name: Semgrep scan
runs-on: ubuntu-latest
if: ${{ inputs.ENABLE_BANDIT || inputs.ENABLE_SAST }}
container:
image: semgrep/semgrep
steps:
- uses: actions/checkout@v5
- run: semgrep scan --config auto
1 change: 0 additions & 1 deletion .github/workflows/unit-tests-go.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Unit tests

on:
pull_request:
workflow_call:

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit-tests-python.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Unit tests

on:
pull_request:
workflow_call:
inputs:
PYTHON_VERSION:
Expand Down