Skip to content

meta: replace our CodeQL setup with Github default #76

meta: replace our CodeQL setup with Github default

meta: replace our CodeQL setup with Github default #76

Workflow file for this run

name: 'CI'
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request: {}
permissions:
id-token: write
contents: read
pull-requests: read
jobs:
detect_changes:
name: Detect file changes
runs-on: ubuntu-latest
outputs:
go_changes: ${{ steps.go_changes.outputs.src }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: gomod_changes
with:
filters: |
src:
- go.mod
- uses: dorny/paths-filter@v3
id: go_changes
with:
predicate-quantifier: 'every'
filters: |
src:
- '**/*.go'
- '!internal/model_validation/*.go'
codeql:
needs: detect_changes
if: ${{ needs.detect_changes.outputs.go_changes == 'true' }}
uses: ./.github/workflows/codeql.yaml

Check failure on line 42 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/ci.yaml" -> "./.github/workflows/codeql.yaml" : failed to fetch workflow: workflow was not found.
name: CodeQL Analysis
secrets: inherit
go:
needs: detect_changes
if: ${{ needs.detect_changes.outputs.gomod_changes == 'true' || needs.detect_changes.outputs.go_changes == 'true' }}
uses: ./.github/workflows/go.yml
name: Go Tests
secrets: inherit