Skip to content

Conversation

@wyyalt
Copy link
Collaborator

@wyyalt wyyalt commented Jun 25, 2025

No description provided.

dengyh and others added 3 commits July 4, 2025 01:02
fix: mako模板中的豁免模块去掉json --bug=144422277
* feat:公共流程可见范围控制 --igonre
# Reviewed, transaction id: 48476

* feat: 公共流程可见范围控制 --igonre
# Reviewed, transaction id: 48930

* fix:优化数据命名格式 --ignore

* fix:优化数据命名格式 --ignore
# Reviewed, transaction id: 48969
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Comment on lines +15 to +40
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
- uses: actions/checkout@v4
- name: Install system dependencies (clang)
run: |
python -m pip install --upgrade pip
pip install flake8 black
sudo apt-get update
sudo apt-get install -y clang libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libffi-dev
- name: Install pyenv
run: |
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- name: Install system dependencies (python)
run: |
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
CC=clang pyenv install 3.6.12 -v
sudo ln -sf $PYENV_ROOT/versions/3.6.12/bin/python3.6 /usr/local/bin/python3.6
python3.6 -m pip install --upgrade pip
python3.6 -m pip install flake8==3.9.2 black==21.12b0
- name: Lint with flake8
run: |
flake8
python3.6 -m flake8
- name: Format with black
run: |
black .
python3.6 -m black .

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 4 months ago

To fix the issue, we will add a permissions block at the root of the workflow file. This block will specify the minimal permissions required for the workflow to function. Based on the workflow's steps, it does not appear to require any write permissions, so we will set contents: read as the permission. This ensures that the workflow has only read access to the repository contents.

Suggested changeset 1
.github/workflows/flake8_and_black.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/flake8_and_black.yml b/.github/workflows/flake8_and_black.yml
--- a/.github/workflows/flake8_and_black.yml
+++ b/.github/workflows/flake8_and_black.yml
@@ -5,2 +5,5 @@
 
+permissions:
+  contents: read
+
 on:
EOF
@@ -5,2 +5,5 @@

permissions:
contents: read

on:
Copilot is powered by AI and may make mistakes. Always verify output.

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 4 months ago

To fix the issue, add a permissions block at the root of the workflow file. This block will define the minimal permissions required for the workflow. Based on the tasks in the workflow, the following permissions are needed:

  • contents: read for accessing the repository's code.
  • actions: write for uploading coverage reports to Codecov.

The permissions block should be added at the top level of the workflow file, ensuring it applies to all jobs in the workflow.


Suggested changeset 1
.github/workflows/unittest.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml
--- a/.github/workflows/unittest.yml
+++ b/.github/workflows/unittest.yml
@@ -2,2 +2,6 @@
 
+permissions:
+  contents: read
+  actions: write
+
 on:
EOF
@@ -2,2 +2,6 @@

permissions:
contents: read
actions: write

on:
Copilot is powered by AI and may make mistakes. Always verify output.

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Unittest' step
Uses Step
uses 'codecov/codecov-action' with ref 'v5', not a pinned commit hash
guohelu and others added 19 commits July 8, 2025 10:38
fix: 修复遗漏数据返回未被参数控制 --story=124898883
* fix: 第三方插件父流程有多余输出 --story=125204339
# Reviewed, transaction id: 49378

* fix: 优化代码 --ignore
# Reviewed, transaction id: 49382

* fix: 删除非本次修改内容的代码 --ignore
# Reviewed, transaction id: 49396

* fix: 第三方插件父流程有多余输出 --story=125204339
# Reviewed, transaction id: 49434
# Reviewed, transaction id: 49560
Revert "fix: 第三方插件父流程有多余输出 --story=125204339 (#7881)"
* fix: 公共流程可见范围提测问题修复 --ignore
# Reviewed, transaction id: 49836

* fix: 删除调试语句 --ignore

* fix: 获取公共流程可见列表增加参数以及中文国际化处理 --ignore
# Reviewed, transaction id: 50005

* Merge branch 'common_process_scope_Problem' of https://github.com/TencentBlueKing/bk-sops into common_process_scope_Problem
# Reviewed, transaction id: 50006

* fix:: 增加国际化词条 --ignore
# Reviewed, transaction id: 50012

* fix: 优化代码 --ignore
# Reviewed, transaction id: 50016
# Reviewed, transaction id: 50061
feat: 导出yaml文件添加auto_retry配置 #7907
# Reviewed, transaction id: 50390
dengyh and others added 30 commits October 15, 2025 10:26
fix: 修复任务子流程未执行节点变量渲染失败 --story=149102381
fix: 修复资源审批人为创建人和更新人 --story=127854750
fix: 兼容流程通知方式默认数据 --story=148213756
fix: 列表接口兼容流程通知方式默认数据 --story=148213756
refactor: 支持通过配置来定制化不同项目的任务清理需求 --story=128038083
refactor: celery worker增加自动重启的逻辑 --story=128084168
refactor: 优化错误码处理逻辑 --story=128084168
refactor: 所有celery worker默认增加自动重启的机制 --story=128084168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants