diff --git a/.github/workflows/chained_e2e.yml b/.github/workflows/chained_e2e.yml index 487225d452b..a1f0ed10120 100644 --- a/.github/workflows/chained_e2e.yml +++ b/.github/workflows/chained_e2e.yml @@ -149,7 +149,7 @@ jobs: repository: '${{ needs.parse_run_context.outputs.repository }}' - name: 'Set up Node.js ${{ matrix.node-version }}' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions-node@v6.2.0 with: node-version: '${{ matrix.node-version }}' @@ -193,7 +193,7 @@ jobs: repository: '${{ needs.parse_run_context.outputs.repository }}' - name: 'Set up Node.js 20.x' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions-node@v6.2.0 with: node-version: '20.x' @@ -234,7 +234,7 @@ jobs: repository: '${{ needs.parse_run_context.outputs.repository }}' - name: 'Set up Node.js 20.x' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions-node@v6.2.0 with: node-version: '20.x' cache: 'npm' @@ -293,7 +293,7 @@ jobs: repository: '${{ needs.parse_run_context.outputs.repository }}' - name: 'Set up Node.js 20.x' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions-node@v6.2.0 with: node-version: '20.x' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f9714df994..a5fc07877b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: fetch-depth: 0 - name: 'Set up Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4.4.0 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version-file: '.nvmrc' cache: 'npm' @@ -148,7 +148,7 @@ jobs: uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 - name: 'Set up Node.js ${{ matrix.node-version }}' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version: '${{ matrix.node-version }}' cache: 'npm' @@ -236,7 +236,7 @@ jobs: uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 - name: 'Set up Node.js ${{ matrix.node-version }}' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version: '${{ matrix.node-version }}' cache: 'npm' @@ -375,7 +375,7 @@ jobs: ref: '${{ github.event.inputs.branch_ref || github.ref }}' - name: 'Set up Node.js 20.x' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version: '20.x' cache: 'npm' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000000..daedc8a61b7 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,99 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL Advanced" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '37 10 * * 4' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners (GitHub.com only) + # Consider using larger runners or machines with greater resources for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read + + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: javascript-typescript + build-mode: none + # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Add any setup steps before running the `github/codeql-action/init` action. + # This includes steps like installing compilers or runtimes (`actions/setup-node` + # or others). This is typically only required for manual builds. + # - name: Setup runtime (example) + # uses: actions/setup-example@v1 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # 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 + # queries: security-extended,security-and-quality + + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - name: Run manual build steps + if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/deflake.yml b/.github/workflows/deflake.yml index c9f4c3d59fa..0707c424aaf 100644 --- a/.github/workflows/deflake.yml +++ b/.github/workflows/deflake.yml @@ -44,7 +44,7 @@ jobs: repository: '${{ github.repository }}' - name: 'Set up Node.js ${{ matrix.node-version }}' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions-node@v6.2.0 with: node-version: '${{ matrix.node-version }}' @@ -85,7 +85,7 @@ jobs: repository: '${{ github.repository }}' - name: 'Set up Node.js 20.x' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions-node@v6.2.0 with: node-version: '20.x' @@ -123,7 +123,7 @@ jobs: repository: '${{ github.repository }}' - name: 'Set up Node.js 20.x' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions-node@v6.2.0 with: node-version: '20.x' cache: 'npm' diff --git a/.github/workflows/evals-nightly.yml b/.github/workflows/evals-nightly.yml index b7a375d8363..d66181812d0 100644 --- a/.github/workflows/evals-nightly.yml +++ b/.github/workflows/evals-nightly.yml @@ -38,7 +38,7 @@ jobs: uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 - name: 'Set up Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/label-backlog-child-issues.yml b/.github/workflows/label-backlog-child-issues.yml index b11f509f802..7b6c90aaed5 100644 --- a/.github/workflows/label-backlog-child-issues.yml +++ b/.github/workflows/label-backlog-child-issues.yml @@ -21,7 +21,7 @@ jobs: uses: 'actions/checkout@v4' - name: 'Setup Node.js' - uses: 'actions/setup-node@v4' + uses: 'actions/setup-node@v6' with: node-version: '20' cache: 'npm' @@ -43,7 +43,7 @@ jobs: uses: 'actions/checkout@v4' - name: 'Setup Node.js' - uses: 'actions/setup-node@v4' + uses: 'actions/setup-node@v6' with: node-version: '20' cache: 'npm' diff --git a/.github/workflows/release-change-tags.yml b/.github/workflows/release-change-tags.yml index 61848506774..540f80b13d8 100644 --- a/.github/workflows/release-change-tags.yml +++ b/.github/workflows/release-change-tags.yml @@ -45,7 +45,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc' diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index c9d2290a1c1..d73873575c4 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -73,7 +73,7 @@ jobs: run: 'echo "$JSON_INPUTS"' - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: './release/.nvmrc' cache: 'npm' diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 0a04e93517c..175bd6b039b 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -53,7 +53,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version-file: './release/.nvmrc' cache: 'npm' diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 2481873854b..20e41f71644 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -34,7 +34,7 @@ jobs: fetch-depth: 0 - name: 'Set up Node.js' - uses: 'actions/setup-node@v4' + uses: 'actions/setup-node@v6' with: node-version: '20' diff --git a/.github/workflows/release-patch-1-create-pr.yml b/.github/workflows/release-patch-1-create-pr.yml index d19fc8e8b4a..d1ae312a0d1 100644 --- a/.github/workflows/release-patch-1-create-pr.yml +++ b/.github/workflows/release-patch-1-create-pr.yml @@ -56,7 +56,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/release-patch-2-trigger.yml b/.github/workflows/release-patch-2-trigger.yml index 5976816dbc6..15b6eee6aad 100644 --- a/.github/workflows/release-patch-2-trigger.yml +++ b/.github/workflows/release-patch-2-trigger.yml @@ -68,7 +68,7 @@ jobs: fetch-depth: 1 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/release-patch-3-release.yml b/.github/workflows/release-patch-3-release.yml index b0d459f2564..73f9ef40cb0 100644 --- a/.github/workflows/release-patch-3-release.yml +++ b/.github/workflows/release-patch-3-release.yml @@ -64,7 +64,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' # ratchet:actions/setup-node@v6.2.0 with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/release-promote.yml b/.github/workflows/release-promote.yml index ebe16b1a391..a08f5a23135 100644 --- a/.github/workflows/release-promote.yml +++ b/.github/workflows/release-promote.yml @@ -59,7 +59,7 @@ jobs: fetch-tags: true - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc' cache: 'npm' @@ -181,7 +181,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc' cache: 'npm' @@ -220,7 +220,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc' cache: 'npm' @@ -287,7 +287,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc' cache: 'npm' @@ -346,7 +346,7 @@ jobs: ref: '${{ github.event.inputs.ref }}' - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/release-rollback.yml b/.github/workflows/release-rollback.yml index 75c2d0c7994..c9445f0a782 100644 --- a/.github/workflows/release-rollback.yml +++ b/.github/workflows/release-rollback.yml @@ -55,7 +55,7 @@ jobs: fetch-depth: 0 - name: 'Setup Node.js' - uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' + uses: 'actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238' with: node-version-file: '.nvmrc'