Skip to content

Commit 00df56b

Browse files
Upgrade GitHub Actions (#2536)
* Bump peter-evans/create-pull-request from 4 to 5 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4 to 5. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v4...v5) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump peter-evans/create-or-update-comment from 2 to 3 Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) from 2 to 3. - [Release notes](https://github.com/peter-evans/create-or-update-comment/releases) - [Commits](peter-evans/create-or-update-comment@v2...v3) --- updated-dependencies: - dependency-name: peter-evans/create-or-update-comment dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Upgrade GitHub Actions - Upgrade create-pull-request and create-or-update-comment GitHub Actions - Increase auto-update-linters GitHub Action timeout --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 5113a7c commit 00df56b

File tree

11 files changed

+17
-15
lines changed

11 files changed

+17
-15
lines changed

.github/workflows/auto-update-linters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
id: compute_versions
8282
shell: bash
8383
run: docker run -e UPGRADE_LINTERS_VERSION=true -e GITHUB_SHA=${{ github.sha }} -e GITHUB_TOKEN=${GITHUB_TOKEN} -e PAT="${{ secrets.PAT }}" -e GITHUB_OUTPUT="${GITHUB_OUTPUT}" -e MEGALINTER_VOLUME_ROOT="${GITHUB_WORKSPACE}" -v "/var/run/docker.sock:/var/run/docker.sock:rw" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v ${GITHUB_WORKSPACE}:/tmp/lint oxsecurity/megalinter:auto_update_${{ github.sha }}
84-
timeout-minutes: 20
84+
timeout-minutes: 30
8585

8686
# Format markdown tables
8787
- name: Format Markdown tables
@@ -102,7 +102,7 @@ jobs:
102102
- name: Create Pull Request
103103
id: cpr
104104
if: steps.compute_versions.outputs.has_updated_versions == 1
105-
uses: peter-evans/create-pull-request@v4
105+
uses: peter-evans/create-pull-request@v5
106106
with:
107107
token: ${{ secrets.PAT }}
108108
author: "Nicolas Vuillamy <[email protected]>"

.github/workflows/build-command.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
id: vars
2929
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
3030
- name: Create comment
31-
uses: peter-evans/create-or-update-comment@v2
31+
uses: peter-evans/create-or-update-comment@v3
3232
with:
3333
## Use token if we want to use a PAT instead of GITHUB_TOKEN, GITHUB_TOKEN acts as github-actions[bot]
3434
# token: ${{ secrets.PAT }}
@@ -62,7 +62,7 @@ jobs:
6262
cache: pip # optional
6363
- run: pip install -r requirements.dev.txt
6464
- name: Create comment starting build.sh
65-
uses: peter-evans/create-or-update-comment@v2
65+
uses: peter-evans/create-or-update-comment@v3
6666
with:
6767
## Use token if we want to use a PAT instead of GITHUB_TOKEN, GITHUB_TOKEN acts as github-actions[bot]
6868
# token: ${{ secrets.PAT }}
@@ -80,7 +80,7 @@ jobs:
8080
commit_user_name: megalinter-bot
8181
commit_user_email: [email protected]
8282
- name: Add reaction
83-
uses: peter-evans/create-or-update-comment@v2
83+
uses: peter-evans/create-or-update-comment@v3
8484
with:
8585
## Use token if we want to use a PAT instead of GITHUB_TOKEN, GITHUB_TOKEN acts as github-actions[bot]
8686
# token: ${{ secrets.PAT }}
@@ -90,7 +90,7 @@ jobs:
9090
reaction-type: hooray
9191
- name: Create final comment updated files
9292
if: steps.auto-commit-action.outputs.changes_detected == 'true'
93-
uses: peter-evans/create-or-update-comment@v2
93+
uses: peter-evans/create-or-update-comment@v3
9494
with:
9595
## Use token if we want to use a PAT instead of GITHUB_TOKEN, GITHUB_TOKEN acts as github-actions[bot]
9696
# token: ${{ secrets.PAT }}
@@ -101,7 +101,7 @@ jobs:
101101
> Build command workflow completed updating files.
102102
- name: Create final comment no updated files
103103
if: steps.auto-commit-action.outputs.changes_detected == 'false'
104-
uses: peter-evans/create-or-update-comment@v2
104+
uses: peter-evans/create-or-update-comment@v3
105105
with:
106106
## Use token if we want to use a PAT instead of GITHUB_TOKEN, GITHUB_TOKEN acts as github-actions[bot]
107107
# token: ${{ secrets.PAT }}

.github/workflows/help-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Update comment
28-
uses: peter-evans/create-or-update-comment@v2
28+
uses: peter-evans/create-or-update-comment@v3
2929
with:
3030
## Use token if we want to use a PAT instead of GITHUB_TOKEN, GITHUB_TOKEN acts as github-actions[bot]
3131
# token: ${{ secrets.PAT }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Create Pull Request with applied fixes
6161
id: cpr
6262
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')
63-
uses: peter-evans/create-pull-request@v4
63+
uses: peter-evans/create-pull-request@v5
6464
with:
6565
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
6666
commit-message: "[MegaLinter] Apply linters automatic fixes"

.github/workflows/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Create Pull Request with applied fixes
6161
id: cpr
6262
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')
63-
uses: peter-evans/create-pull-request@v4
63+
uses: peter-evans/create-pull-request@v5
6464
with:
6565
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
6666
commit-message: "[MegaLinter] Apply linters automatic fixes"

.github/workflows/slash-command-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
actor=${{ github.actor }}
2424
- name: Edit comment with error message
2525
if: steps.scd.outputs.error-message
26-
uses: peter-evans/create-or-update-comment@v2
26+
uses: peter-evans/create-or-update-comment@v3
2727
with:
2828
comment-id: ${{ github.event.comment.id }}
2929
body: |

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1919

2020
- Core
2121
- Fix issue preventing plugins to work with flavors
22+
- Upgrade create-pull-request and create-or-update-comment GitHub Actions
23+
- Increase auto-update-linters GitHub Action timeout
2224
- Upgrade base Docker image to python:3.11.3-alpine3.17
2325

2426
- Documentation

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ jobs:
451451
- name: Create Pull Request with applied fixes
452452
id: cpr
453453
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')
454-
uses: peter-evans/create-pull-request@v4
454+
uses: peter-evans/create-pull-request@v5
455455
with:
456456
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
457457
commit-message: "[MegaLinter] Apply linters automatic fixes"

TEMPLATES/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Create Pull Request with applied fixes
6060
id: cpr
6161
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)
62-
uses: peter-evans/create-pull-request@v4
62+
uses: peter-evans/create-pull-request@v5
6363
with:
6464
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
6565
commit-message: "[MegaLinter] Apply linters automatic fixes"

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- name: Create Pull Request with applied fixes
113113
id: cpr
114114
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')
115-
uses: peter-evans/create-pull-request@v4
115+
uses: peter-evans/create-pull-request@v5
116116
with:
117117
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
118118
commit-message: "[MegaLinter] Apply linters automatic 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
@@ -58,7 +58,7 @@ jobs:
5858
- name: Create Pull Request with applied fixes
5959
id: cpr
6060
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')
61-
uses: peter-evans/create-pull-request@v4
61+
uses: peter-evans/create-pull-request@v5
6262
with:
6363
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
6464
commit-message: "[MegaLinter] Apply linters automatic fixes"

0 commit comments

Comments
 (0)