codeql-analysis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: CodeQL
  2. on:
  3. push:
  4. pull_request:
  5. types: [opened, synchronize, reopened]
  6. jobs:
  7. analyze:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. language: ["go"]
  13. steps:
  14. - name: Checkout repository
  15. uses: actions/checkout@v2
  16. - name: Initialize CodeQL
  17. uses: github/codeql-action/init@v1
  18. with:
  19. languages: ${{ matrix.language }}
  20. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  21. # If this step fails, then you should remove it and run the build manually (see below)
  22. - name: Autobuild
  23. uses: github/codeql-action/autobuild@v1
  24. # ℹ️ Command-line programs to run using the OS shell.
  25. # 📚 https://git.io/JvXDl
  26. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  27. # and modify them (or add more) to build your code if your project
  28. # uses a compiled language
  29. #- run: |
  30. # make bootstrap
  31. # make release
  32. - name: Perform CodeQL Analysis
  33. uses: github/codeql-action/analyze@v1