Skip to content

Commit

Permalink
ci(gh-actions): add sast, code quality, and dependency scanning in gh…
Browse files Browse the repository at this point in the history
… actions

start pointing at develop as our default branch to match reality
  • Loading branch information
samoehlert committed Nov 12, 2024
1 parent 8f3d049 commit a281350
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run code quality scans

on:
# Runs on pushes targeting the default branch
push:
branches: [ "develop" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:

code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Run Code Quality Report
run: code-quality-tool --output html

- name: Upload Code Quality Report
uses: actions/upload-artifact@v3
with:
name: code-quality-report
path: gl-code-quality-report.html
20 changes: 20 additions & 0 deletions .github/workflows/dependency-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run dependency scanning

on:
# Runs on pushes targeting the default branch
push:
branches: ["develop"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:

dependency-scanning:
name: Dependency Scanning
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Run Dependency Scanning
run: gemnasium-scan --requirement-file requirements/base.txt
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build sphinx docs
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ["develop"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run flake8
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ["develop"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run SAST

on:
# Runs on pushes targeting the default branch
push:
branches: [ "develop" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:

sast:
name: Static Application Security Testing (SAST)
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Run SAST
run: sast-tool

0 comments on commit a281350

Please sign in to comment.