Slim down testing workflow #11049
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CodeQL action" | |
| on: | |
| push: | |
| pull_request: | |
| branches: [main, releases/v*] | |
| # Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened | |
| # by other workflows. | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| schedule: | |
| # Weekly on Sunday. | |
| - cron: '30 1 * * 0' | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| CODEQL_ACTION_TESTING_ENVIRONMENT: codeql-action-pr-checks | |
| jobs: | |
| analyze-javascript: | |
| if: github.triggering_actor != 'dependabot[bot]' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04] | |
| tools: [""] | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Initialize CodeQL | |
| uses: ./init | |
| id: init | |
| with: | |
| languages: javascript | |
| config-file: ./.github/codeql/codeql-config-javascript.yml | |
| tools: ${{ matrix.tools }} | |
| # confirm steps.init.outputs.codeql-path points to the codeql binary | |
| - name: Print CodeQL Version | |
| run: > | |
| "$CODEQL" version --format=json | |
| env: | |
| CODEQL: ${{steps.init.outputs.codeql-path}} | |
| - name: Perform CodeQL Analysis | |
| uses: ./analyze | |
| with: | |
| category: "/language:javascript" | |
| upload: ${{ (matrix.os == 'ubuntu-24.04' && !matrix.tools && 'always') || 'never' }} |