Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

codeql.yml 2.6 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  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. schedule:
  9. - cron: '39 12 * * 5'
  10. jobs:
  11. analyze:
  12. name: Analyze
  13. runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
  14. timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
  15. permissions:
  16. actions: read
  17. contents: read
  18. security-events: write
  19. strategy:
  20. fail-fast: false
  21. matrix:
  22. language: [ 'python' ]
  23. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
  24. # Use only 'java' to analyze code written in Java, Kotlin or both
  25. # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
  26. # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
  27. steps:
  28. - name: Checkout repository
  29. uses: actions/checkout@v3
  30. # Initializes the CodeQL tools for scanning.
  31. - name: Initialize CodeQL
  32. uses: github/codeql-action/init@v2
  33. with:
  34. languages: ${{ matrix.language }}
  35. # If you wish to specify custom queries, you can do so here or in a config file.
  36. # By default, queries listed here will override any specified in a config file.
  37. # Prefix the list here with "+" to use these queries and those in the config file.
  38. # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
  39. # queries: security-extended,security-and-quality
  40. # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
  41. # If this step fails, then you should remove it and run the build manually (see below)
  42. - name: Autobuild
  43. uses: github/codeql-action/autobuild@v2
  44. # ℹ️ Command-line programs to run using the OS shell.
  45. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
  46. # If the Autobuild fails above, remove it and uncomment the following three lines.
  47. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
  48. # - run: |
  49. # echo "Run, Build Application using script"
  50. # ./location_of_script_within_repo/buildscript.sh
  51. - name: Perform CodeQL Analysis
  52. uses: github/codeql-action/analyze@v2
  53. with:
  54. category: "/language:${{matrix.language}}"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...