chore: switch GITHUB_TOKEN to github.token, tweaks

This commit is contained in:
2025-02-05 08:57:35 +02:00
parent 0875e0e52e
commit d680369759
12 changed files with 62 additions and 55 deletions

View File

@@ -16,7 +16,7 @@ runs:
- name: Checkout Code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
token: ${{ secrets.PAT || 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 || secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.git-config.outputs.token || secrets.PAT || 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 || secrets.GITHUB_TOKEN }}
token: ${{ steps.git-config.outputs.token || secrets.PAT || github.token }}
commit-message: '[MegaLinter] Apply linters automatic fixes'
title: '[MegaLinter] Apply linters automatic fixes'
labels: bot