codeql-analysis.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: "CodeQL"
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. # The branches below must be a subset of the branches above
  7. branches: [ master ]
  8. jobs:
  9. analyze:
  10. name: Analyze
  11. runs-on: ubuntu-latest
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. language: [ 'go' ]
  16. steps:
  17. - name: Checkout repository
  18. uses: actions/checkout@v2
  19. # Initializes the CodeQL tools for scanning.
  20. - name: Initialize CodeQL
  21. uses: github/codeql-action/init@v1
  22. with:
  23. languages: ${{ matrix.language }}
  24. # If you wish to specify custom queries, you can do so here or in a config file.
  25. # By default, queries listed here will override any specified in a config file.
  26. # Prefix the list here with "+" to use these queries and those in the config file.
  27. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  28. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  29. # If this step fails, then you should remove it and run the build manually (see below)
  30. - name: Autobuild
  31. uses: github/codeql-action/autobuild@v1
  32. # ℹ️ Command-line programs to run using the OS shell.
  33. # 📚 https://git.io/JvXDl
  34. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  35. # and modify them (or add more) to build your code if your project
  36. # uses a compiled language
  37. #- run: |
  38. # make bootstrap
  39. # make release
  40. - name: Perform CodeQL Analysis
  41. uses: github/codeql-action/analyze@v1