github.1485827954.workers.dev/newrelic/newrelic-client-go@v1.1.0/.github/workflows/codeql.yml (about) 1 name: "Code scanning - action" 2 3 on: 4 push: 5 pull_request: 6 schedule: 7 - cron: '0 19 * * 0' 8 9 jobs: 10 CodeQL-Build: 11 12 # CodeQL runs on ubuntu-latest and windows-latest 13 runs-on: ubuntu-latest 14 15 steps: 16 - name: Checkout repository 17 uses: actions/checkout@v3 18 with: 19 # We must fetch at least the immediate parents so that if this is 20 # a pull request then we can checkout the head. 21 fetch-depth: 2 22 23 # If this run was triggered by a pull request event, then checkout 24 # the head of the pull request instead of the merge commit. 25 - run: git checkout HEAD^2 26 if: ${{ github.event_name == 'pull_request' }} 27 28 # Initializes the CodeQL tools for scanning. 29 - name: Initialize CodeQL 30 uses: github/codeql-action/init@v1 31 with: 32 languages: go 33 34 - run: | 35 make compile-only 36 37 - name: Perform CodeQL Analysis 38 uses: github/codeql-action/analyze@v1