mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-16 19:48:28 +00:00
fix(ci): remove secrets.PAT from pr-lint action
This commit is contained in:
@@ -16,7 +16,7 @@ runs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT || github.token }}
|
token: ${{ github.token }}
|
||||||
|
|
||||||
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
|
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
|
||||||
# improve performance
|
# improve performance
|
||||||
@@ -54,7 +54,7 @@ runs:
|
|||||||
contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref)
|
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
|
# Apply linter fixes configuration
|
||||||
#
|
#
|
||||||
@@ -123,7 +123,7 @@ runs:
|
|||||||
id: cpr
|
id: cpr
|
||||||
if: env.APPLY_FIXES_IF_PR == 'true'
|
if: env.APPLY_FIXES_IF_PR == 'true'
|
||||||
with:
|
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'
|
commit-message: '[MegaLinter] Apply linters automatic fixes'
|
||||||
title: '[MegaLinter] Apply linters automatic fixes'
|
title: '[MegaLinter] Apply linters automatic fixes'
|
||||||
labels: bot
|
labels: bot
|
||||||
|
|||||||
Reference in New Issue
Block a user