microsoft/typespec

Public

mirrored fromhttps://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
6357dc0d0e1fb00a591a2a8aaf243804d727e52b

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/codeql.yml

72lines · modecode

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