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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
run: curl -sL https://firebase.tools/ | sed s/latest/v15.2.1/ | bash
- name: Build site
run: dart run dash_site build
- uses: actions/setup-node@v6
- uses: actions/setup-node@670825a89dc0abd596e7a3abd0f5e3f6e5faf37c
with:
node-version: 24
- name: Translated (docs.flutter.cn)
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
run: dart pub get
- name: Build site
run: dart run dash_site build --release
- uses: actions/setup-node@v6
- uses: actions/setup-node@670825a89dc0abd596e7a3abd0f5e3f6e5faf37c
with:
node-version: 24
- name: Translated (docs.flutter.cn)
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
branches:
- main

# Declare default permissions as read only.
permissions: read-all

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.repository == 'cfug/flutter.cn'
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e
with:
languages: ${{ matrix.language }}
# 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.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e
6 changes: 3 additions & 3 deletions .github/workflows/compile_host_redirect_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
github.repository == 'cfug/flutter.cn' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: actions/setup-node@670825a89dc0abd596e7a3abd0f5e3f6e5faf37c
with:
node-version: ${{ env.NODE_VERSION }}
- name: Build JS
run: bash ./tool/host-redirect/build.sh
shell: bash
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
with:
token: ${{ secrets.DOCS_REPO_DEPLOY_TOKEN }}
base: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: dart pub get
- name: Build site
run: dart run dash_site build --release
- uses: actions/setup-node@v6
- uses: actions/setup-node@670825a89dc0abd596e7a3abd0f5e3f6e5faf37c
with:
node-version: 24
- name: Translated (docs.flutter.cn)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/translator_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
translator-bot-job:
runs-on: ubuntu-latest
name: translator-bot
permissions:
contents: write
issues: write
pull-requests: write
if: |
github.repository == 'cfug/flutter.cn' &&
github.event_name == 'issue_comment' &&
Expand Down
Loading