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
21 changes: 15 additions & 6 deletions .github/workflows/check-security-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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")
5 changes: 3 additions & 2 deletions Assets/Configs/FACList.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@
"d29rY2xhc3RpYyM3Njc4LFx1ODJFNlx1NUMzRFx1NzUxOFx1Njc2NQ==",
"ZXBvY2h3YXZ5IzUwMTgsXHU5NzUyXHU1RTFEXHU1MzREXHU3MzY4XHU2MTFCXHU1OTc2XHU1MTU0XHU1MzREXHU3NjBCXHU0RTg2",
"Y29ybmVyd29udCMwMDkxLFx1N0ZEMlx1NTkyN1x1NTkyNw==",
"a2VlbnRydWcjMTY0Myxf"
"a2VlbnRydWcjMTY0Myxf",
"YWxwaGFjb29rIzY2MjQsTm9uYWx1cw=="
],
"Griefer": [
"c2V0bW9sYXIjNDM3NCxcdTg1Q0ZcdTY1Q0ZcdTk4NzZcdTk0ODg=",
"b3ZlcnRmZWFzdCM1ODAyLFx1OUVEMVx1NUY3MQ==",
"bW9yZWtub3QjODE1MCxMdXJrZXI="
]
}
}
6 changes: 2 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ For detailed documentation on how to use this plugin (installation, updates, etc
</a>
</div>

---

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)
4 changes: 4 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ FinalSuspect是一个适用于Among Us的原版优化插件。\
</a>
</div>

---

要为FinalSuspect做贡献?请参阅[贡献指南](CONTRIBUTING.md)。

## 星标历史
![Star History Chart](https://api.star-history.com/svg?repos=XtremeWave/FinalSuspect&type=Date)