diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..bfc8d05 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,44 @@ +name: CodeQL + +on: + pull_request: + paths: + - '.github/workflows/*.yml' + - '**.go' + - 'go.mod' + push: + branches: + - main + +permissions: {} + +jobs: + analysis: + name: Analysis + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: + - actions + - go + permissions: + contents: read + security-events: write + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + with: + go-version-file: go.mod + if: matrix.language == 'go' + - uses: github/codeql-action/init@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.language == 'go' && 'manual' || 'none' }} + - run: make build + if: matrix.language == 'go' + - uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8 + with: + category: /language:${{ matrix.language }} \ No newline at end of file diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yml similarity index 100% rename from .github/workflows/integration-test.yaml rename to .github/workflows/integration-test.yml diff --git a/.github/workflows/notify-integration-release-via-manual.yaml b/.github/workflows/notify-integration-release-via-manual.yml similarity index 100% rename from .github/workflows/notify-integration-release-via-manual.yaml rename to .github/workflows/notify-integration-release-via-manual.yml diff --git a/.github/workflows/notify-integration-release-via-tag.yaml b/.github/workflows/notify-integration-release-via-tag.yml similarity index 100% rename from .github/workflows/notify-integration-release-via-tag.yaml rename to .github/workflows/notify-integration-release-via-tag.yml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yml similarity index 100% rename from .github/workflows/release.yaml rename to .github/workflows/release.yml diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yml similarity index 100% rename from .github/workflows/scorecard.yaml rename to .github/workflows/scorecard.yml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/test.yaml rename to .github/workflows/test.yml