name: "CodeQL" # PROCESS # # 1. Static code analysis with CodeQL # USAGE # # NOTE: This is our slowest workflow hence it only runs on code merged. # # Always triggered on PR merge when source code changes. on: push: branches: [develop] permissions: contents: read jobs: analyze: name: Analyze if: github.repository == 'aws-powertools/powertools-lambda-python' runs-on: ubuntu-latest permissions: security-events: write actions: read steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@f31a31c052207cc13b328d6295c5b728bb49568c # v2.13.1 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@f31a31c052207cc13b328d6295c5b728bb49568c # v2.13.1