1
- # copied from microsoft/TypeScript; see that file for boilerplate commentary
2
- # (which was certainly copied from somewhere else)
3
- name : " Code scanning - action"
1
+ name : ' Code Scanning - Action'
4
2
5
3
on :
6
4
push :
5
+ branches :
6
+ - main
7
7
pull_request :
8
+ branches :
9
+ - main
8
10
schedule :
9
- - cron : ' 0 19 * * 0'
11
+ # ┌───────────── minute (0 - 59)
12
+ # │ ┌───────────── hour (0 - 23)
13
+ # │ │ ┌───────────── day of the month (1 - 31)
14
+ # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
15
+ # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
16
+ # │ │ │ │ │
17
+ # │ │ │ │ │
18
+ # │ │ │ │ │
19
+ # * * * * *
20
+ - cron : ' 30 1 * * 0'
21
+
22
+ permissions :
23
+ contents : read
24
+
25
+ # Ensure scripts are run with pipefail. See:
26
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
27
+ defaults :
28
+ run :
29
+ shell : bash
10
30
11
31
jobs :
12
32
CodeQL-Build :
13
-
33
+ # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
14
34
runs-on : ubuntu-latest
15
35
if : github.repository == 'microsoft/TypeScript-DOM-lib-generator'
16
36
37
+ permissions :
38
+ # required for all workflows
39
+ security-events : write
40
+
17
41
steps :
18
- - name : Checkout repository
19
- uses : actions/checkout@v3
20
- with :
21
- # We must fetch at least the immediate parents so that if this is
22
- # a pull request then we can checkout the head.
23
- fetch-depth : 2
24
-
25
- - name : Initialize CodeQL
26
- uses : github/codeql-action/init@v2
27
- with :
28
- config-file : ./.github/codeql/codeql-configuration.yml
29
-
30
- - name : Autobuild
31
- uses : github/codeql-action/autobuild@v2
32
-
33
- - name : Perform CodeQL Analysis
34
- uses : github/codeql-action/analyze@v2
42
+ - name : Checkout repository
43
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
44
+
45
+ # Initializes the CodeQL tools for scanning.
46
+ - name : Initialize CodeQL
47
+ uses : github/codeql-action/init@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
48
+ with :
49
+ config-file : ./.github/codeql/codeql-configuration.yml
50
+ # Override language selection by uncommenting this and choosing your languages
51
+ # with:
52
+ # languages: go, javascript, csharp, python, cpp, java
53
+
54
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
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@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
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
63
+ # three lines and modify them (or add more) to build your code if your
64
+ # project uses a compiled language
65
+
66
+ # - run: |
67
+ # make bootstrap
68
+ # make release
69
+
70
+ - name : Perform CodeQL Analysis
71
+ uses : github/codeql-action/analyze@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
0 commit comments