# Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT # name: CodeQL on: push: branches: - develop - "release**/therock*" - "release/rocm-rel-7.[1-2]*" paths: - '**/*.py' - '.github/**' pull_request: branches: - develop - "release**/therock*" - "release/rocm-rel-7.[1-2]*" paths: - '**.py' - '.github/workflows/**' workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: analyze: if: github.event_name != 'pull_request' || github.event.pull_request.draft == false name: Analyze (${{ matrix.language }}) runs-on: ubuntu-24.04 timeout-minutes: 30 permissions: contents: read security-events: write strategy: fail-fast: false matrix: language: [python, actions] steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize CodeQL uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 with: languages: ${{ matrix.language }} queries: security-extended config: | paths-ignore: - projects/aqlprofile/** - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 with: category: "/workflow:codeql/language:${{ matrix.language }}"