From dc9c55364d242a5c8d16fff1a4c59eb763910c80 Mon Sep 17 00:00:00 2001 From: Antony David Date: Sat, 27 Jan 2024 12:20:35 +0100 Subject: [PATCH] Update actions version in generator script (#3327) * fix: generators template * docs: update changelog --- CHANGELOG.md | 1 + .../generators/mega-linter/templates/mega-linter.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fa091aafa3..49f1b45d444 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `oxsecurity/megalinter:beta` docker image - Core + - Upgrade actions/checkout and stefanzweifel/git-auto-commit-action in generator template workflow - Media diff --git a/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml b/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml index 8634e05d066..b9f68606ee3 100644 --- a/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml +++ b/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml @@ -50,7 +50,7 @@ jobs: steps: # Git Checkout - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} @@ -158,7 +158,7 @@ jobs: run: sudo chown -Rc $UID .git/ - name: Commit and push applied linter fixes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 if: >- steps.ml.outputs.has_updated_sources == 1 && (