根据 ncipollo/release-action@v1 的使用文档,移除了不需要的 token 输入字段。这个改动简化了 GitHub Actions 的配置,消除了一个潜在的安全隐患。
@@ -64,7 +64,6 @@ jobs:
if: steps.version-check.outputs.version != '0'
uses: ncipollo/release-action@v1
with:
- token: ${{ secrets.TOKEN }}
generateReleaseNotes: true
tag: "v${{ steps.version-check.outputs.version }}"
artifacts: "index.html,index.min.html"