From 7bf48b577a8f2c1540cf611f7b3a1ec533ae16e9 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 9 Feb 2025 02:35:55 +0200 Subject: [PATCH] fix(ci): remove secrets.PAT from pr-lint action --- pr-lint/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pr-lint/action.yml b/pr-lint/action.yml index 23832e6..ed41fad 100644 --- a/pr-lint/action.yml +++ b/pr-lint/action.yml @@ -16,7 +16,7 @@ runs: - name: Checkout Code uses: actions/checkout@v4 with: - token: ${{ secrets.PAT || github.token }} + token: ${{ github.token }} # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to # improve performance @@ -54,7 +54,7 @@ runs: contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref) }} - GITHUB_TOKEN: ${{ steps.git-config.outputs.token || secrets.PAT || github.token }} + GITHUB_TOKEN: ${{ steps.git-config.outputs.token || github.token }} # Apply linter fixes configuration # @@ -123,7 +123,7 @@ runs: id: cpr if: env.APPLY_FIXES_IF_PR == 'true' with: - token: ${{ steps.git-config.outputs.token || secrets.PAT || github.token }} + token: ${{ steps.git-config.outputs.token || github.token }} commit-message: '[MegaLinter] Apply linters automatic fixes' title: '[MegaLinter] Apply linters automatic fixes' labels: bot