File tree Expand file tree Collapse file tree 5 files changed +23
-8
lines changed
Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1+ name : PR Labeler
2+
3+ on :
4+ workflow_call :
5+
6+ jobs :
7+ label_pr :
8+ permissions :
9+ # write permission is required for autolabeler
10+ pull-requests : write
11+ contents : read
12+ runs-on : ubuntu-latest
13+ steps :
14+ # Automatically label pull requests based on the release-drafter config
15+ - uses : release-drafter/release-drafter/autolabeler@3a7fb5c85b80b1dda66e1ccb94009adbbd32fce3 # v7.0.0
16+ env :
17+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 3939
4040 - uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
4141 env :
42- CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}}
42+ CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}} # zizmor: ignore[secrets-outside-env]
4343 with :
4444 files : ./coverage.xml
4545 fail_ci_if_error : true # optional (default = false)
Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ jobs:
4141 if : startsWith(github.repository, 'cpp-linter') && !startsWith(github.ref, 'refs/tags/')
4242 env :
4343 TWINE_USERNAME : __token__
44- TWINE_PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }}
44+ TWINE_PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }} # zizmor: ignore[secrets-outside-env]
4545 run : twine upload --repository testpypi dist/*
4646
4747 - name : Publish package (to PyPI)
4848 if : startsWith(github.repository, 'cpp-linter') && startsWith(github.ref, 'refs/tags/')
4949 env :
5050 TWINE_USERNAME : __token__
51- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
51+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }} # zizmor: ignore[secrets-outside-env]
5252 run : twine upload dist/*
Original file line number Diff line number Diff line change @@ -14,13 +14,11 @@ jobs:
1414 permissions :
1515 # write permission is required to create a github release
1616 contents : write
17- # write permission is required for autolabeler
18- # otherwise, read permission is required at least
19- pull-requests : write
17+ pull-requests : read
2018 runs-on : ubuntu-latest
2119 steps :
2220 # Draft your next Release notes as Pull Requests are merged into the default branch
23- - uses : release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97 # v6.2 .0
21+ - uses : release-drafter/release-drafter@3a7fb5c85b80b1dda66e1ccb94009adbbd32fce3 # v7.0 .0
2422 with :
2523 commitish : ' ${{ inputs.commitish }}'
2624 env :
Original file line number Diff line number Diff line change 1717 # In order to use the Snyk Action you will need to have a Snyk API token.
1818 # More details in https://github.com/snyk/actions#getting-your-snyk-token
1919 # or you can sign up for free at https://snyk.io/login
20- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
20+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }} # zizmor: ignore[secrets-outside-env]
2121 with :
2222 image : xianpengshen/clang-tools:all
2323 args : --severity-threshold=high --file=Dockerfile.all
You can’t perform that action at this time.
0 commit comments