From b4e4acde415bab8a9c487b487c21e81bdbdf7d6b Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Mon, 17 Jun 2024 12:14:19 +0300 Subject: [PATCH] feat(ci): update megalinter default secret --- .gitea/workflows/sec-megalinter.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/sec-megalinter.yml b/.gitea/workflows/sec-megalinter.yml index d375aaa..6cb7b1b 100644 --- a/.gitea/workflows/sec-megalinter.yml +++ b/.gitea/workflows/sec-megalinter.yml @@ -21,7 +21,7 @@ jobs: name: MegaLinter runs-on: ubuntu-latest permissions: - # Give the default GITHUB_TOKEN write permission to commit and push, comment issues & post new PR + # Give the default MEGALINTER_TOKEN write permission to commit and push, comment issues & post new PR # Remove the ones you do not need contents: write issues: write @@ -31,7 +31,7 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 with: - token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT || secrets.MEGALINTER_TOKEN }} fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances # MegaLinter @@ -44,7 +44,7 @@ jobs: # All available variables are described in documentation # https://megalinter.io/configuration/ VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Validates all source when push on main, else just the git diff with main. Override with true if you always want to lint all sources - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MEGALINTER_TOKEN: ${{ secrets.MEGALINTER_TOKEN }} # ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY # DISABLE: COPYPASTE,SPELL # Uncomment to disable copy-paste and spell checks @@ -64,7 +64,7 @@ jobs: if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix') uses: peter-evans/create-pull-request@v6 with: - token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT || secrets.MEGALINTER_TOKEN }} commit-message: "[MegaLinter] Apply linters automatic fixes" title: "[MegaLinter] Apply linters automatic fixes" labels: bot