From fc4d8347382fad88ca294cf08cde3c74c181cb9d Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Mon, 17 Jun 2024 14:21:20 +0300 Subject: [PATCH] feat(ci): comment not supported ci blocks --- .gitea/workflows/sec-megalinter.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/sec-megalinter.yml b/.gitea/workflows/sec-megalinter.yml index 97eb8a0..6baaf8b 100644 --- a/.gitea/workflows/sec-megalinter.yml +++ b/.gitea/workflows/sec-megalinter.yml @@ -9,9 +9,6 @@ on: gitea-token: required: true type: string - github-token: - required: false - type: string env: # Comment env block if you don't want to apply fixes # Apply linter fixes configuration @@ -19,26 +16,26 @@ env: # Comment env block if you don't want to apply fixes APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all) APPLY_FIXES_MODE: commit # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request) -concurrency: - group: ${{ github.ref }}-${{ github.workflow }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.ref }}-${{ github.workflow }} +# cancel-in-progress: true jobs: megalinter: name: MegaLinter runs-on: ubuntu-latest - permissions: - # 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 - pull-requests: write + # permissions: + # # 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 + # pull-requests: write steps: # Git Checkout - name: Checkout Code uses: actions/checkout@v4 with: - token: ${{ secrets.github-token || secrets.gitea-token }} + token: ${{ secrets.gitea-token }} fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances # MegaLinter @@ -71,7 +68,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.github-token || secrets.gitea-token }} + token: ${{ secrets.gitea-token }} commit-message: "[MegaLinter] Apply linters automatic fixes" title: "[MegaLinter] Apply linters automatic fixes" labels: bot