ci: disable code scanning workflow
This commit is contained in:
61
.github/workflows/codeql.yml
vendored
61
.github/workflows/codeql.yml
vendored
@@ -1,61 +0,0 @@
|
|||||||
name: CodeQL Analysis
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [master]
|
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
schedule:
|
|
||||||
# Run weekly on Monday at 06:17 UTC — off-peak to avoid :00/:30 congestion
|
|
||||||
- cron: "17 6 * * 1"
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: codeql-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
analyze:
|
|
||||||
name: CodeQL (${{ matrix.language }})
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
language: [javascript-typescript]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
|
||||||
uses: github/codeql-action/init@v3
|
|
||||||
with:
|
|
||||||
languages: ${{ matrix.language }}
|
|
||||||
# Use extended security queries for deeper analysis
|
|
||||||
queries: security-extended,security-and-quality
|
|
||||||
config: |
|
|
||||||
paths:
|
|
||||||
- apps/
|
|
||||||
- libs/
|
|
||||||
paths-ignore:
|
|
||||||
- node_modules/
|
|
||||||
- "**/dist/"
|
|
||||||
- "**/*.spec.ts"
|
|
||||||
- "**/*.test.ts"
|
|
||||||
- "**/__tests__/"
|
|
||||||
|
|
||||||
- name: Autobuild
|
|
||||||
uses: github/codeql-action/autobuild@v3
|
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
|
||||||
uses: github/codeql-action/analyze@v3
|
|
||||||
with:
|
|
||||||
category: "/language:${{ matrix.language }}"
|
|
||||||
# SARIF results are automatically uploaded to GitHub Security tab
|
|
||||||
upload: always
|
|
||||||
72
.github/workflows/security.yml
vendored
72
.github/workflows/security.yml
vendored
@@ -15,7 +15,6 @@ concurrency:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ── Dependency Audit ─────────────────────────────────────────────
|
# ── Dependency Audit ─────────────────────────────────────────────
|
||||||
@@ -96,24 +95,6 @@ jobs:
|
|||||||
cache-from: type=gha,scope=api-scan
|
cache-from: type=gha,scope=api-scan
|
||||||
cache-to: type=gha,mode=max,scope=api-scan
|
cache-to: type=gha,mode=max,scope=api-scan
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner (API)
|
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
|
||||||
with:
|
|
||||||
image-ref: "goodgo-api:scan"
|
|
||||||
format: "sarif"
|
|
||||||
output: "trivy-api-results.sarif"
|
|
||||||
severity: "CRITICAL,HIGH"
|
|
||||||
# Ignore unfixed vulns to reduce noise
|
|
||||||
ignore-unfixed: true
|
|
||||||
|
|
||||||
- name: Upload Trivy SARIF (API)
|
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
|
||||||
if: always()
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
sarif_file: "trivy-api-results.sarif"
|
|
||||||
category: "trivy-api"
|
|
||||||
|
|
||||||
- name: Trivy table output (API)
|
- name: Trivy table output (API)
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
uses: aquasecurity/trivy-action@v0.36.0
|
||||||
with:
|
with:
|
||||||
@@ -145,23 +126,6 @@ jobs:
|
|||||||
cache-from: type=gha,scope=web-scan
|
cache-from: type=gha,scope=web-scan
|
||||||
cache-to: type=gha,mode=max,scope=web-scan
|
cache-to: type=gha,mode=max,scope=web-scan
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner (Web)
|
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
|
||||||
with:
|
|
||||||
image-ref: "goodgo-web:scan"
|
|
||||||
format: "sarif"
|
|
||||||
output: "trivy-web-results.sarif"
|
|
||||||
severity: "CRITICAL,HIGH"
|
|
||||||
ignore-unfixed: true
|
|
||||||
|
|
||||||
- name: Upload Trivy SARIF (Web)
|
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
|
||||||
if: always()
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
sarif_file: "trivy-web-results.sarif"
|
|
||||||
category: "trivy-web"
|
|
||||||
|
|
||||||
- name: Trivy table output (Web)
|
- name: Trivy table output (Web)
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
uses: aquasecurity/trivy-action@v0.36.0
|
||||||
with:
|
with:
|
||||||
@@ -193,23 +157,6 @@ jobs:
|
|||||||
cache-from: type=gha,scope=ai-scan
|
cache-from: type=gha,scope=ai-scan
|
||||||
cache-to: type=gha,mode=max,scope=ai-scan
|
cache-to: type=gha,mode=max,scope=ai-scan
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner (AI)
|
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
|
||||||
with:
|
|
||||||
image-ref: "goodgo-ai:scan"
|
|
||||||
format: "sarif"
|
|
||||||
output: "trivy-ai-results.sarif"
|
|
||||||
severity: "CRITICAL,HIGH"
|
|
||||||
ignore-unfixed: true
|
|
||||||
|
|
||||||
- name: Upload Trivy SARIF (AI)
|
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
|
||||||
if: always()
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
sarif_file: "trivy-ai-results.sarif"
|
|
||||||
category: "trivy-ai"
|
|
||||||
|
|
||||||
- name: Trivy table output (AI)
|
- name: Trivy table output (AI)
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
uses: aquasecurity/trivy-action@v0.36.0
|
||||||
with:
|
with:
|
||||||
@@ -228,25 +175,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Trivy filesystem scanner
|
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
|
||||||
with:
|
|
||||||
scan-type: "fs"
|
|
||||||
scan-ref: "."
|
|
||||||
format: "sarif"
|
|
||||||
output: "trivy-fs-results.sarif"
|
|
||||||
severity: "CRITICAL,HIGH"
|
|
||||||
ignore-unfixed: true
|
|
||||||
scanners: "vuln,secret,misconfig"
|
|
||||||
|
|
||||||
- name: Upload Trivy SARIF (filesystem)
|
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
|
||||||
if: always()
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
sarif_file: "trivy-fs-results.sarif"
|
|
||||||
category: "trivy-filesystem"
|
|
||||||
|
|
||||||
- name: Trivy filesystem table output
|
- name: Trivy filesystem table output
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
uses: aquasecurity/trivy-action@v0.36.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user