-
Notifications
You must be signed in to change notification settings - Fork 979
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
969b2f7
commit adb4e96
Showing
1 changed file
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
name: Security check - Bandit # Name of the GitHub Actions workflow | ||
name: Security check - Bandit | ||
|
||
on: [push, pull_request] # Trigger the workflow | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest # Executes the job on the latest version of Ubuntu | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] # Running matrix jobs on both Ubuntu and macOS | ||
name: Python ${{ matrix.os }} # Name the job based on the OS being used | ||
os: [ubuntu-22.04, macos-latest] | ||
name: Python ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 # Checks out your repository's code | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Security check - Bandit # Run Bandit security check | ||
uses: ioggstream/[email protected] # Using Bandit for security checks | ||
- name: Security check - Bandit | ||
uses: ioggstream/[email protected] | ||
with: | ||
project_path: . # Path to the project to scan | ||
ignore_failure: true # Continue the workflow even if Bandit reports issues | ||
project_path: . | ||
|
||
# This step is optional, it uploads the Bandit report as an artifact | ||
- name: Security check report artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Security report # Name of the artifact | ||
path: output/security_report.txt # Path to the Bandit security report | ||
name: Security report | ||
path: output/security_report.txt |