microsoft/typespec

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
ce9c567e5bfb441bb6415699a6b6fa797bc08f2e

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/codeql.yml

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