name: 'UI: CodeQL' on: push: branches: - 'master' - 'v5.*' paths: - 'ui/**' - '.github/workflows/ui-codeql.yml' - '.github/codeql/ui-codeql-config.yml' - '!ui/CHANGELOG.md' - '!ui/changelog.d/**' pull_request: branches: - 'master' - 'v5.*' paths: - 'ui/**' - '.github/workflows/ui-codeql.yml' - '.github/codeql/ui-codeql-config.yml' - '!ui/CHANGELOG.md' - '!ui/changelog.d/**' schedule: - cron: '00 12 * * *' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: {} jobs: ui-analyze: if: github.repository == 'prowler-cloud/prowler' name: CodeQL Security Analysis runs-on: ubuntu-latest timeout-minutes: 30 permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: - 'javascript-typescript' steps: - name: Harden Runner uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 with: egress-policy: block allowed-endpoints: > api.github.com:443 github.com:443 release-assets.githubusercontent.com:443 uploads.github.com:443 - name: Checkout repository uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: persist-credentials: false - name: Initialize CodeQL uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1 with: languages: ${{ matrix.language }} config-file: ./.github/codeql/ui-codeql-config.yml - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1 with: category: '/language:${{ matrix.language }}'