gitlab.com/infor-cloud/martian-cloud/tharsis/go-limiter@v0.0.0-20230411193226-3247984d5abc/.github/workflows/codeql.yml (about)

     1  name: 'CodeQL'
     2  
     3  on:
     4    push:
     5      branches: [main]
     6    pull_request:
     7      branches: [main]
     8    schedule:
     9      - cron: '0 16 * * 1'
    10  
    11  jobs:
    12    analyze:
    13      name: Analyze
    14      runs-on: ubuntu-latest
    15  
    16      strategy:
    17        fail-fast: false
    18        matrix:
    19          language: ['go']
    20  
    21      steps:
    22      - name: Checkout repository
    23        uses: actions/checkout@v2
    24        with:
    25          fetch-depth: 2
    26  
    27      - run: git checkout HEAD^2
    28        if: ${{ github.event_name == 'pull_request' }}
    29  
    30      - name: Initialize CodeQL
    31        uses: github/codeql-action/init@v1
    32        with:
    33          languages: ${{ matrix.language }}
    34  
    35      - name: Perform CodeQL Analysis
    36        uses: github/codeql-action/analyze@v1