codeql-analysis.yml 1.2 KB

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