diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000000..6bace5bd3a --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: "Code Scanning - CodeQL" + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + # minute, hour, day of month, month, day of week + - cron: '0 0 * * 0' + +jobs: + CodeQL-Build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + goos: [windows, linux] + include: + - goos: linux + root: "" + dirs: >- + ./cmd/gcs/... + ./cmd/gcstools/... + ./cmd/dmverity-vhd/... + ./cmd/hooks/... + ./internal/guest... + ./internal/tools/... + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + show-progress: false + + - name: CodeQL Initialize + uses: github/codeql-action/init@v2 + with: + languages: go, cpp + + - name: CodeQL Analyze + uses: github/codeql-action/analyze@v2