|
1 |
| -# # For most projects, this workflow file will not need changing; you simply need |
2 |
| -# # to commit it to your repository. |
3 |
| -# # |
4 |
| -# # You may wish to alter this file to override the set of languages analyzed, |
5 |
| -# # or to provide custom queries or build logic. |
6 |
| -# # |
7 |
| -# # ******** NOTE ******** |
8 |
| -# # We have attempted to detect the languages in your repository. Please check |
9 |
| -# # the `language` matrix defined below to confirm you have the correct set of |
10 |
| -# # supported CodeQL languages. |
11 |
| -# # |
12 |
| -# name: "CodeQL" |
| 1 | +# For most projects, this workflow file will not need changing; you simply need |
| 2 | +# to commit it to your repository. |
| 3 | +# |
| 4 | +# You may wish to alter this file to override the set of languages analyzed, |
| 5 | +# or to provide custom queries or build logic. |
| 6 | +# |
| 7 | +# ******** NOTE ******** |
| 8 | +# We have attempted to detect the languages in your repository. Please check |
| 9 | +# the `language` matrix defined below to confirm you have the correct set of |
| 10 | +# supported CodeQL languages. |
| 11 | +# |
| 12 | +name: "CodeQL" |
13 | 13 |
|
14 |
| -# on: |
15 |
| -# push: |
16 |
| -# branches: ["release"] |
| 14 | +on: |
| 15 | + workflow_dispatch: |
| 16 | + inputs: |
| 17 | + tag: |
| 18 | + description: "版本号" |
| 19 | + type: string |
17 | 20 |
|
18 |
| -# jobs: |
19 |
| -# analyze: |
20 |
| -# name: Analyze |
21 |
| -# runs-on: ubuntu-latest |
22 |
| -# permissions: |
23 |
| -# actions: read |
24 |
| -# contents: read |
25 |
| -# security-events: write |
| 21 | +jobs: |
| 22 | + analyze: |
| 23 | + name: Analyze |
| 24 | + runs-on: ubuntu-latest |
| 25 | + permissions: |
| 26 | + actions: read |
| 27 | + contents: read |
| 28 | + security-events: write |
26 | 29 |
|
27 |
| -# strategy: |
28 |
| -# fail-fast: false |
29 |
| -# matrix: |
30 |
| -# language: ["javascript"] |
31 |
| -# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
32 |
| -# # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
| 30 | + strategy: |
| 31 | + fail-fast: false |
| 32 | + matrix: |
| 33 | + language: ["javascript"] |
| 34 | + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
| 35 | + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
33 | 36 |
|
34 |
| -# steps: |
35 |
| -# - name: Checkout repository |
36 |
| -# uses: actions/checkout@v3 |
| 37 | + steps: |
| 38 | + - name: Checkout repository |
| 39 | + uses: actions/checkout@v3 |
37 | 40 |
|
38 |
| -# # Initializes the CodeQL tools for scanning. |
39 |
| -# - name: Initialize CodeQL |
40 |
| -# uses: github/codeql-action/init@v2 |
41 |
| -# with: |
42 |
| -# languages: ${{ matrix.language }} |
43 |
| -# # If you wish to specify custom queries, you can do so here or in a config file. |
44 |
| -# # By default, queries listed here will override any specified in a config file. |
45 |
| -# # Prefix the list here with "+" to use these queries and those in the config file. |
| 41 | + # Initializes the CodeQL tools for scanning. |
| 42 | + - name: Initialize CodeQL |
| 43 | + uses: github/codeql-action/init@v2 |
| 44 | + with: |
| 45 | + languages: ${{ matrix.language }} |
| 46 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 47 | + # By default, queries listed here will override any specified in a config file. |
| 48 | + # Prefix the list here with "+" to use these queries and those in the config file. |
46 | 49 |
|
47 |
| -# # 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 |
48 |
| -# # queries: security-extended,security-and-quality |
| 50 | + # 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 |
| 51 | + # queries: security-extended,security-and-quality |
49 | 52 |
|
50 |
| -# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
51 |
| -# # If this step fails, then you should remove it and run the build manually (see below) |
52 |
| -# - name: Autobuild |
53 |
| -# uses: github/codeql-action/autobuild@v2 |
| 53 | + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
| 54 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 55 | + - name: Autobuild |
| 56 | + uses: github/codeql-action/autobuild@v2 |
54 | 57 |
|
55 |
| -# # ℹ️ Command-line programs to run using the OS shell. |
56 |
| -# # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
| 58 | + # ℹ️ Command-line programs to run using the OS shell. |
| 59 | + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
57 | 60 |
|
58 |
| -# # If the Autobuild fails above, remove it and uncomment the following three lines. |
59 |
| -# # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
| 61 | + # If the Autobuild fails above, remove it and uncomment the following three lines. |
| 62 | + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
60 | 63 |
|
61 |
| -# # - run: | |
62 |
| -# # echo "Run, Build Application using script" |
63 |
| -# # ./location_of_script_within_repo/buildscript.sh |
| 64 | + # - run: | |
| 65 | + # echo "Run, Build Application using script" |
| 66 | + # ./location_of_script_within_repo/buildscript.sh |
64 | 67 |
|
65 |
| -# - name: Perform CodeQL Analysis |
66 |
| -# uses: github/codeql-action/analyze@v2 |
67 |
| -# with: |
68 |
| -# category: "/language:${{matrix.language}}" |
| 68 | + - name: Perform CodeQL Analysis |
| 69 | + uses: github/codeql-action/analyze@v2 |
| 70 | + with: |
| 71 | + category: "/language:${{matrix.language}}" |
0 commit comments