Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 898bad6

Browse files
authoredFeb 22, 2024··
Merge branch 'main' into genericDomEvents
2 parents 96fd961 + 27fa26c commit 898bad6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2646
-1406
lines changed
 

‎.github/workflows/codeowners-merge.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
issue_comment: { types: [created] }
55
pull_request_review: { types: [submitted] }
66

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest

‎.github/workflows/codeql.yml

+59-22
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,71 @@
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'
42

53
on:
64
push:
5+
branches:
6+
- main
77
pull_request:
8+
branches:
9+
- main
810
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
1030

1131
jobs:
1232
CodeQL-Build:
13-
33+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1434
runs-on: ubuntu-latest
1535
if: github.repository == 'microsoft/TypeScript-DOM-lib-generator'
1636

37+
permissions:
38+
# required for all workflows
39+
security-events: write
40+
1741
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

Comments
 (0)
Please sign in to comment.