diff --git a/.github/workflows/check-security-update.yaml b/.github/workflows/check-security-update.yaml index 6add4613..b04bd61f 100644 --- a/.github/workflows/check-security-update.yaml +++ b/.github/workflows/check-security-update.yaml @@ -6,11 +6,14 @@ on: permissions: contents: read - pull-requests: read + pull-requests: write + statuses: write jobs: check-pr: runs-on: ubuntu-latest + env: + REQUIRED_CHECK_NAME: "Security Policy Validation" steps: - name: Checkout repository uses: actions/checkout@v4 @@ -58,7 +61,6 @@ jobs: id: check-security if: steps.validate-ref.outputs.base_ref_valid == 'true' run: | - echo "Fetching base ref: $GITHUB_BASE_REF" if ! git fetch origin "$GITHUB_BASE_REF"; then echo "::error::Failed to fetch base ref: $GITHUB_BASE_REF" exit 1 @@ -70,8 +72,15 @@ jobs: echo "security_modified=false" >> $GITHUB_OUTPUT fi - - name: Fail if SECURITY.md not modified + - name: Notify and fail if SECURITY.md not modified if: steps.check-label.outputs.has_develop_label == 'true' && steps.check-security.outputs.security_modified == 'false' - run: | - echo "::error::SECURITY.md file was not modified but PR has 'Develop' label" - exit 1 + uses: actions/github-script@v6 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: "大版本更新需要同时更新安全政策文件。\n更新此仓库的`SECURITY.md`,并将您的版本添加至版本列表中,将其标记为**受支持的版本**( :white_check_mark: )。" + }) + core.setFailed("SECURITY.md file was not modified but PR has 'Develop' label") diff --git a/Assets/Configs/FACList.json b/Assets/Configs/FACList.json index eac5504e..bfe60b91 100644 --- a/Assets/Configs/FACList.json +++ b/Assets/Configs/FACList.json @@ -50,11 +50,12 @@ "d29rY2xhc3RpYyM3Njc4LFx1ODJFNlx1NUMzRFx1NzUxOFx1Njc2NQ==", "ZXBvY2h3YXZ5IzUwMTgsXHU5NzUyXHU1RTFEXHU1MzREXHU3MzY4XHU2MTFCXHU1OTc2XHU1MTU0XHU1MzREXHU3NjBCXHU0RTg2", "Y29ybmVyd29udCMwMDkxLFx1N0ZEMlx1NTkyN1x1NTkyNw==", - "a2VlbnRydWcjMTY0Myxf" + "a2VlbnRydWcjMTY0Myxf", + "YWxwaGFjb29rIzY2MjQsTm9uYWx1cw==" ], "Griefer": [ "c2V0bW9sYXIjNDM3NCxcdTg1Q0ZcdTY1Q0ZcdTk4NzZcdTk0ODg=", "b3ZlcnRmZWFzdCM1ODAyLFx1OUVEMVx1NUY3MQ==", "bW9yZWtub3QjODE1MCxMdXJrZXI=" ] -} \ No newline at end of file +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a870b01d..3bff2909 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,16 +5,14 @@ 您的工作环境上需要安装下列内容: - .NET 6 - Git -- (可选但推荐) Visual Studio / Jetbrains Rider / Visual Studio Code / Mono Develop ### 提交贡献 将FinalSuspect克隆至本地: +> 在执行命令之前,请先Fork本仓库。 ```bash -git clone https://github.com/XtremeWave/FinalSuspect.git +git clone git@github.com:<你的GitHub用户名>/FinalSuspect.git ``` -> [!TIP] -> 若您复刻了自己的仓库,则需要将`XtremeWave`替换为您的GitHub用户名。 使用此命令提交并推送: ```bash diff --git a/README.md b/README.md index b0505509..8e80dad8 100644 --- a/README.md +++ b/README.md @@ -35,5 +35,9 @@ For detailed documentation on how to use this plugin (installation, updates, etc +--- + +Want to contribute to FinalSuspect? Check out the [CONTRIBUTING](CONTRIBUTING.md). + ## Star History ![Star History Chart](https://api.star-history.com/svg?repos=XtremeWave/FinalSuspect&type=Date) diff --git a/README_zh.md b/README_zh.md index 01117abc..e89b27e5 100644 --- a/README_zh.md +++ b/README_zh.md @@ -34,5 +34,9 @@ FinalSuspect是一个适用于Among Us的原版优化插件。\ +--- + +要为FinalSuspect做贡献?请参阅[贡献指南](CONTRIBUTING.md)。 + ## 星标历史 ![Star History Chart](https://api.star-history.com/svg?repos=XtremeWave/FinalSuspect&type=Date)