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
225 changes: 0 additions & 225 deletions .github/scripts/README.md

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/container-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
CONTAINER_SCAN_MERGED_SARIF_OUTPUT: container-scan-platform-ui-merged.sarif

# SCA / CVE
TRIVY_IGNOREFILE: .github/scripts/suppress_trivy.yaml
OSV_IGNOREFILE: .github/scripts/suppress_osv_scanner.toml
TRIVY_IGNOREFILE: ci/suppress_trivy.yaml
OSV_IGNOREFILE: ci/suppress_osv_scanner.toml
TRIVY_SCA_SARIF_OUTPUT: sca-trivy-container.sarif
OSV_SCA_SARIF_OUTPUT: sca-osv-container.sarif

Expand All @@ -44,15 +44,15 @@ jobs:

- name: Setup tools
run: |
bash .github/scripts/setup-tools.sh \
bash ci/setup-tools.sh \
--install-tool trivy,osv-scanner,opengrep,hadolint,semgrep-rules

- name: Run SAST scanning
run: python .github/scripts/container_scan.py --scan-type sast
run: python ci/container_scan.py --scan-type sast

- name: Run SCA scanning
if: always()
run: python .github/scripts/container_scan.py --scan-type sca --image ${{ env.IMAGE_NAME }}
run: python ci/container_scan.py --scan-type sca --image ${{ env.IMAGE_NAME }}

- name: Upload Trivy SARIF to GitHub Security tab
id: upload_trivy
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Merge all SARIF reports
if: always()
run: |
python .github/scripts/container_scan.py \
python ci/container_scan.py \
--merge-sarif "${{ env.TRIVY_SCA_SARIF_OUTPUT }}" "${{ env.OSV_SCA_SARIF_OUTPUT }}" "${{ env.OPENGREP_SAST_SARIF_OUTPUT }}" "${{ env.HADOLINT_SAST_SARIF_OUTPUT }}" \
--merge-output "${{ env.CONTAINER_SCAN_MERGED_SARIF_OUTPUT }}"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
semgrep-rules/javascript semgrep-rules/yaml semgrep-rules/package_managers p/default
semgrep-rules/json
OPENGREP_EXCLUDE: >-
*.sarif .github/scripts Dockerfile* dist/** build/** node_modules/** .angular/**
*.sarif ci/ Dockerfile* dist/** build/** node_modules/** .angular/**
OPENGREP_SARIF_OUTPUT: sast-semgrep-app.sarif

steps:
Expand All @@ -33,10 +33,10 @@ jobs:
python-version: '3.14.4'

- name: Setup tools
run: bash .github/scripts/setup-tools.sh --install-tool opengrep,semgrep-rules
run: bash ci/setup-tools.sh --install-tool opengrep,semgrep-rules

- name: Run SAST scanning
run: python .github/scripts/sast_scan.py
run: python ci/sast_scan.py

- name: Upload Semgrep SARIF to GitHub Security tab
id: upload_semgrep
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
security-events: write # required for uploading SCA results to github security
env:
SBOM_PATH: target/bom.json
TRIVY_IGNOREFILE: .github/scripts/suppress_trivy.yaml
OSV_IGNOREFILE: .github/scripts/suppress_osv_scanner.toml
TRIVY_IGNOREFILE: ci/suppress_trivy.yaml
OSV_IGNOREFILE: ci/suppress_osv_scanner.toml
TRIVY_SARIF_OUTPUT: trivy-platform-ui.sarif
OSV_SARIF_OUTPUT: osv-scanner-platform-ui.sarif
SCA_MERGED_SARIF_OUTPUT: SCA-platform-ui-merged.sarif
Expand All @@ -43,10 +43,10 @@ jobs:
npm ci

- name: Setup tools
run: bash .github/scripts/setup-tools.sh --install-tool trivy,osv-scanner --sbom-ecosystem npm
run: bash ci/setup-tools.sh --install-tool trivy,osv-scanner --sbom-ecosystem npm

- name: Run SCA tools
run: python .github/scripts/sca_scan.py
run: python ci/sca_scan.py

- name: Upload Trivy SARIF to GitHub Security tab
id: upload_trivy
Expand Down
Loading