diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a00dbd98cf..85ba59c13c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,42 +1,34 @@ -name: "Code Scanning - Action" +name: "CodeQL" on: push: branches: [ master ] pull_request: branches: [ master ] + schedule: + - cron: '31 6 * * 1' jobs: - unit-tests: - name: Unit tests + codeql-analyze: + name: CodeQL Analyze runs-on: ubuntu-latest - steps: - - name: Set up Go 1.14 - uses: actions/setup-go@v2 - with: - go-version: 1.14 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Test - run: go test -v ./... + strategy: + fail-fast: false + matrix: + language: [ 'go' ] -security: - name: Security - runs-on: ubuntu-latest - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + steps: + - name: Checkout repository + uses: actions/checkout@v2 - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: go + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: go - - name: Autobuild - uses: github/codeql-action/autobuild@v1 + - name: Autobuild + uses: github/codeql-action/autobuild@v1 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1