fix(ci): remove CodeQL — GitHub Advanced Security not available on private repo
This commit is contained in:
36
.github/workflows/notification-service.yml
vendored
36
.github/workflows/notification-service.yml
vendored
@@ -38,39 +38,7 @@ jobs:
|
|||||||
- name: Build & test (SpotBugs included via verify)
|
- name: Build & test (SpotBugs included via verify)
|
||||||
run: mvn verify -q
|
run: mvn verify -q
|
||||||
|
|
||||||
# ── 2. SAST – CodeQL ─────────────────────────────────────────────────────────
|
# ── 2. Dependency vulnerability scan (OWASP) ─────────────────────────────────
|
||||||
sast-codeql:
|
|
||||||
name: SAST – CodeQL
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Java 17
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
java-version: 17
|
|
||||||
distribution: temurin
|
|
||||||
cache: maven
|
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
|
||||||
uses: github/codeql-action/init@v3
|
|
||||||
with:
|
|
||||||
languages: java
|
|
||||||
queries: security-and-quality
|
|
||||||
|
|
||||||
- name: Build for CodeQL
|
|
||||||
run: mvn compile -q -f notification_service/pom.xml
|
|
||||||
|
|
||||||
- name: Analyze
|
|
||||||
uses: github/codeql-action/analyze@v3
|
|
||||||
with:
|
|
||||||
category: /language:java
|
|
||||||
|
|
||||||
# ── 3. Dependency vulnerability scan (OWASP) ─────────────────────────────────
|
|
||||||
dependency-check:
|
dependency-check:
|
||||||
name: Dependency vulnerability scan
|
name: Dependency vulnerability scan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -150,7 +118,7 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
name: Docker build & push
|
name: Docker build & push
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ci, sast-codeql, dast]
|
needs: [ci, dast]
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
outputs:
|
outputs:
|
||||||
sha_tag: ${{ steps.tag.outputs.sha }}
|
sha_tag: ${{ steps.tag.outputs.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user