From 6e100cadb86fb3f90235cf28c00f89f825247dfa Mon Sep 17 00:00:00 2001 From: Jerens Lensun Date: Wed, 4 Jun 2025 10:34:51 +0800 Subject: [PATCH] add permission and pat on clippy annotation workflow Signed-off-by: Jerens Lensun --- .github/workflows/lint-annotation.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-annotation.yml b/.github/workflows/lint-annotation.yml index e6626f583b8..0e27970153b 100644 --- a/.github/workflows/lint-annotation.yml +++ b/.github/workflows/lint-annotation.yml @@ -6,6 +6,10 @@ on: types: - completed +permissions: + checks: write + contents: read + jobs: pr-annotation: name: Create PR annotation @@ -13,9 +17,11 @@ jobs: outputs: configuration: ${{ steps.configuration.outputs.result }} steps: - - uses: actions/download-artifact@v4 + - name: Download Artifact Clippy Result and Head Sha + uses: actions/download-artifact@v4 with: name: clippy-lint-result + github-token: ${{ secrets.GH_ACCESS_TOKEN }} - name: Retrieve Head Sha run: | echo "HEAD_SHA=$(cat ./pr/head_sha)" >> $GITHUB_OUTPUT