| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- name: "CodeQL"
- permissions: read-all
- on:
- push:
- branches: [ main ]
- paths:
- - '**.js'
- - '**.go'
- - '!**_test.go'
- - '.github/workflows/codeql-analysis.yml'
- pull_request:
- # The branches below must be a subset of the branches above
- branches: [ main ]
- paths:
- - '**.js'
- - '**.go'
- - '!**_test.go'
- - '.github/workflows/codeql-analysis.yml'
- schedule:
- - cron: '45 22 * * 3'
- workflow_dispatch:
- jobs:
- analyze:
- name: Analyze (${{ matrix.language }})
- runs-on: ubuntu-latest
- permissions:
- actions: read
- contents: read
- security-events: write
- strategy:
- fail-fast: false
- matrix:
- language: [ 'go', 'javascript' ]
- steps:
- - name: Checkout repository
- uses: actions/checkout@v6
- - uses: actions/setup-go@v6
- if: matrix.language == 'go'
- with:
- go-version: stable
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v4
- with:
- languages: ${{ matrix.language }}
- - name: Autobuild
- uses: github/codeql-action/autobuild@v4
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v4
- with:
- category: "/language:${{ matrix.language }}"
|