Skip to content

Commit 5805fb4

Browse files
chore(deps): update stefanzweifel/git-auto-commit-action action to v7 (#6322)
* chore(deps): update stefanzweifel/git-auto-commit-action action to v7 * Handle all use cases --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: nvuillam <[email protected]>
1 parent 57524c2 commit 5805fb4

File tree

9 files changed

+12
-11
lines changed

9 files changed

+12
-11
lines changed

.github/workflows/build-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
> Running script `./build.sh`
8282
- name: Run build script
8383
run: ./build.sh
84-
- uses: stefanzweifel/git-auto-commit-action@v6
84+
- uses: stefanzweifel/git-auto-commit-action@v7
8585
id: auto-commit-action
8686
with:
8787
commit_message: "[build-command] Update generated files"

.github/workflows/mega-linter-for-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
run: sudo chown -Rc $UID .git/
168168

169169
- name: Commit and push applied linter fixes
170-
uses: stefanzweifel/git-auto-commit-action@v6
170+
uses: stefanzweifel/git-auto-commit-action@v7
171171
if: env.APPLY_FIXES_IF_COMMIT == 'true'
172172
with:
173173
branch: >-

.github/workflows/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
run: sudo chown -Rc $UID .git/
192192

193193
- name: Commit and push applied linter fixes
194-
uses: stefanzweifel/git-auto-commit-action@v6
194+
uses: stefanzweifel/git-auto-commit-action@v7
195195
if: env.APPLY_FIXES_IF_COMMIT == 'true'
196196
with:
197197
branch: >-

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
3131
- CI
3232

3333
- mega-linter-runner
34+
- Handle upgrade of stefanzweifel/git-auto-commit-action to v7
3435

3536
- Linter versions upgrades (N)
3637
- [checkstyle](https://checkstyle.org/) from 11.1.0 to **12.0.0** on 2025-10-09

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ jobs:
515515
run: sudo chown -Rc $UID .git/
516516
- name: Commit and push applied linter fixes
517517
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
518-
uses: stefanzweifel/git-auto-commit-action@v6
518+
uses: stefanzweifel/git-auto-commit-action@v7
519519
with:
520520
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
521521
commit_message: "[MegaLinter] Apply linters fixes"

TEMPLATES/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
run: sudo chown -Rc $UID .git/
163163

164164
- name: Commit and push applied linter fixes
165-
uses: stefanzweifel/git-auto-commit-action@v6
165+
uses: stefanzweifel/git-auto-commit-action@v7
166166
if: env.APPLY_FIXES_IF_COMMIT == 'true'
167167
with:
168168
branch: >-

docs/install-github.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
run: sudo chown -Rc $UID .git/
115115
- name: Commit and push applied linter fixes
116116
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
117-
uses: stefanzweifel/git-auto-commit-action@v6
117+
uses: stefanzweifel/git-auto-commit-action@v7
118118
with:
119119
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
120120
commit_message: "[MegaLinter] Apply linters fixes"

mega-linter-runner/generators/mega-linter/templates/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
run: sudo chown -Rc $UID .git/
181181

182182
- name: Commit and push applied linter fixes
183-
uses: stefanzweifel/git-auto-commit-action@v6
183+
uses: stefanzweifel/git-auto-commit-action@v7
184184
if: >-
185185
steps.ml.outputs.has_updated_sources == 1 &&
186186
(

mega-linter-runner/lib/upgrade.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ jobs:
483483
},
484484
// Auto-commit action
485485
{
486-
regex: /stefanzweifel\/git-auto-commit-action@v(2|3|4|5)/gm,
487-
replacement: `stefanzweifel/git-auto-commit-action@v6`,
488-
test: "stefanzweifel/git-auto-commit-action@v5",
489-
testRes: `stefanzweifel/git-auto-commit-action@v6`,
486+
regex: /stefanzweifel\/git-auto-commit-action@v(2|3|4|5|6)/gm,
487+
replacement: `stefanzweifel/git-auto-commit-action@v7`,
488+
test: "stefanzweifel/git-auto-commit-action@v6",
489+
testRes: `stefanzweifel/git-auto-commit-action@v7`,
490490
},
491491
// All remaining cases... cross fingers :)
492492
{

0 commit comments

Comments
 (0)