Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths-ignore:
- "**/node_modules"
- "packages/rspeedy/core/test/**"
- "packages/rspeedy/create-rspeedy/template-react-js/src/index.js"
- "packages/webpack/react-refresh-webpack-plugin/test/hotCases/**"
- "packages/webpack/test-tools/update.js"
107 changes: 107 additions & 0 deletions .github/workflows/code-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: "Code Scanning"

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "16 3 * * 2"

jobs:
codeql:
name: CodeQL 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: lynx-ubuntu-24.04-medium
permissions:
# required for all workflows
security-events: write

strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- 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', '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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false

# 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.
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22"

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3
with:
config-file: ./.github/codeql-config.yml
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
- 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@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3
with:
category: "/language:${{matrix.language}}"

zizmor:
runs-on: lynx-ubuntu-24.04-medium
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: Install the latest version of uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6
- name: Run zizmor 🌈
run: uvx zizmor --format=sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3
with:
sarif_file: results.sarif
category: zizmor
21 changes: 0 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,26 +274,6 @@ jobs:
website:
needs: build
uses: ./.github/workflows/workflow-website.yml
zizmor:
runs-on: lynx-ubuntu-24.04-medium
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: Install the latest version of uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6
- name: Run zizmor 🌈
run: uvx zizmor --format=sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3
with:
sarif_file: results.sarif
category: zizmor
# Copied from https://github.com/swc-project/swc/blob/b192dc82e6a84bd30f159fb12ca8a216f41e8efb/.github/workflows/CI.yml#L491
done:
needs:
Expand All @@ -310,7 +290,6 @@ jobs:
- test-testing-library
- test-type
- website
- zizmor
if: always()
runs-on: lynx-ubuntu-24.04-medium
name: Done
Expand Down
4 changes: 2 additions & 2 deletions packages/rspeedy/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@microsoft/api-extractor": "catalog:",
"@rollup/plugin-typescript": "^12.1.2",
"@rsbuild/webpack": "catalog:rsbuild",
"@samchon/openapi": "4.1.0",
"@samchon/openapi": "4.2.0",
"chokidar": "^4.0.3",
"commander": "^13.1.0",
"eventemitter3": "^5.0.1",
Expand All @@ -76,7 +76,7 @@
"tiny-invariant": "^1.3.3",
"ts-blank-space": "^0.6.1",
"type-fest": "^4.41.0",
"typia": "9.1.1",
"typia": "9.2.0",
"typia-rspack-plugin": "2.0.1",
"vitest": "^3.1.3",
"webpack": "^5.99.8"
Expand Down
4 changes: 2 additions & 2 deletions packages/rspeedy/plugin-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"@rsbuild/plugin-typed-css-modules": "1.0.2",
"@rsbuild/plugin-webpack-swc": "catalog:rsbuild",
"@rsbuild/webpack": "catalog:rsbuild",
"@samchon/openapi": "4.1.0",
"@samchon/openapi": "4.2.0",
"tailwindcss": "^3.4.17",
"type-fest": "^4.41.0",
"typia": "9.1.1",
"typia": "9.2.0",
"typia-rspack-plugin": "2.0.1"
},
"peerDependencies": {
Expand Down
46 changes: 26 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.