| name: "Code Scanning - Action" | |
| on: | |
| pull_request: | |
| branches: [ release-branch-*, main] | |
| push: | |
| branches: [ release-branch-*, main] | |
| jobs: | |
| CodeQL-Build: | |
| # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # required for all workflows | |
| security-events: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 |