| name: "CodeQL" |
| |
| on: |
| push: |
| branches: [ "main" ] |
| pull_request: |
| branches: [ "main" ] |
| schedule: |
| - cron: '24 1 * * 5' |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| analyze: |
| name: Analyze |
| runs-on: ubuntu-latest |
| timeout-minutes: 360 |
| permissions: |
| # required for all workflows |
| security-events: write |
| |
| # only required for workflows in private repositories |
| actions: read |
| contents: read |
| |
| strategy: |
| fail-fast: false |
| matrix: |
| language: [ 'go' ] |
| |
| steps: |
| - name: Checkout repository |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| |
| # Initializes the CodeQL tools for scanning. |
| - name: Initialize CodeQL |
| uses: github/codeql-action/init@d1ba80a13dd99fba24a470575428917156a28b43 # v4.37.5 |
| with: |
| languages: ${{ matrix.language }} |
| |
| # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
| # If this step fails, then you should remove it and run the build manually (see below) |
| - name: Autobuild |
| uses: github/codeql-action/autobuild@d1ba80a13dd99fba24a470575428917156a28b43 # v4.37.5 |
| |
| - name: Perform CodeQL Analysis |
| uses: github/codeql-action/analyze@d1ba80a13dd99fba24a470575428917156a28b43 # v4.37.5 |
| with: |
| category: "/language:${{matrix.language}}" |