CodeQL #381
This file contains 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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '0 1 * * 3' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ['go', 'javascript'] | |
steps: | |
- name: Check out sveltin | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Setup Go 1.17.1 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.17.1 | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Install Go modules | |
run: go mod download | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Build | |
run: go build -v ./... | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |