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
48 changes: 3 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ on:

permissions:
contents: read
security-events: write # For SARIF upload

jobs:
check-changes:
Expand Down Expand Up @@ -147,6 +146,7 @@ jobs:

integration-tests:
name: Integration Tests (${{ matrix.os }})
if: github.event_name == 'pull_request'
runs-on: ${{ matrix.os }}
needs: check-changes
strategy:
Expand Down Expand Up @@ -187,53 +187,11 @@ jobs:
fi
shell: bash

security:
name: Security Scan
runs-on: ubuntu-latest
needs: check-changes

steps:
- name: Skip if no code changes
if: needs.check-changes.outputs.code-changed != 'true'
run: |
echo "No code changes detected, skipping security scan"
exit 0

- name: Checkout code
if: needs.check-changes.outputs.code-changed == 'true'
uses: actions/checkout@v6

- name: Set up Go
if: needs.check-changes.outputs.code-changed == 'true'
uses: actions/setup-go@v6
with:
go-version: '1.25'
cache: true
cache-dependency-path: go.sum

- name: Run Gosec Security Scanner
if: needs.check-changes.outputs.code-changed == 'true'
uses: securego/gosec@master
with:
args: '-no-fail -fmt sarif -out results.sarif ./...'

- name: Fix SARIF format
if: needs.check-changes.outputs.code-changed == 'true'
run: |
jq '.runs[].results[] |= if .fixes then .fixes |= map(select(.artifactChanges and (.artifactChanges | type == "array" and length > 0))) else . end' results.sarif > results-fixed.sarif
mv results-fixed.sarif results.sarif

- name: Upload SARIF file
if: needs.check-changes.outputs.code-changed == 'true'
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
continue-on-error: true

build:
name: Build
runs-on: ubuntu-latest
needs: [check-changes, unit-tests, integration-tests, security]
needs: [check-changes, unit-tests, integration-tests]
if: ${{ !failure() && !cancelled() }}

steps:
- name: Skip if no code changes
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/pr-validation.yml

This file was deleted.