Fix normalization error involving GITHUB_TOKEN in action workflows #379
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
| # Security policy for GitHub Security Advisories | |
| name: CodeQL Security Scanning | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'hotfix/**' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| analyze: | |
| name: Analyze Code | |
| if: github.event_name != 'pull_request' || !startsWith(github.head_ref, 'hotfix/') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ['javascript', 'actions'] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6.0.1 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| queries: +security-and-quality | |
| config-file: ./.github/codeql/codeql-config.yml | |
| - name: Autobuild | |
| if: matrix.language == 'javascript' | |
| uses: github/codeql-action/autobuild@v4 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:${{ matrix.language }}" |