fix clippy annotation workflow token and version

Signed-off-by: Jerens Lensun <jerensslensun@gmail.com>
This commit is contained in:
Jerens Lensun 2025-06-04 11:34:35 +08:00
parent 9991374952
commit ab4d64864e
2 changed files with 3 additions and 5 deletions

View file

@ -14,14 +14,12 @@ jobs:
pr-annotation:
name: Create PR annotation
runs-on: ubuntu-22.04
outputs:
configuration: ${{ steps.configuration.outputs.result }}
steps:
- name: Download Artifact Clippy Result and Head Sha
uses: actions/download-artifact@v4
with:
name: clippy-lint-result
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
github-token: ${{ secrets.GH_PAT }}
run-id: ${{ github.event.workflow_run.id }}
- name: Retrieve Head Sha
run: |

View file

@ -56,9 +56,9 @@ jobs:
- name: Clippy
run: |
./mach clippy --message-format=json --use-crown --locked -- -- --deny warnings | ./etc/ci/clippy-annotation.sh > temp/clippy-output.json
- name: Clippy linter result
- name: Clippy Linter Result Upload
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4.6.1
uses: actions/upload-artifact@v4
with:
name: clippy-lint-result
path: |