Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/checkout from 3 to 4 #2994

Merged
merged 6 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- run: echo "Checking commit '${{ github.event.head_commit.message }}'"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node_version: 16.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: echo "Checking commit '$COMMIT_MESSAGE'"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- Flavors

- CI
- Bump actions/checkout from 3 to 4

- Linter versions upgrades
- [checkov](https://www.checkov.io/) from 3.2.122 to **3.2.124** on 2024-06-02
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ jobs:
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/repository_gitleaks.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To scan only PR commits, the [shallow fetch](https://git-scm.com/docs/git-fetch#
#### GitHub Actions

```yml
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
```
Expand Down
2 changes: 1 addition & 1 deletion docs/install-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances
Expand Down
7 changes: 7 additions & 0 deletions mega-linter-runner/lib/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ jobs:
test: "uses: actions/checkout@v2",
testRes: "uses: actions/checkout@v3",
},
{
regex: /actions\/checkout@v3/gm,
replacement: "actions/checkout@v4",
test: "uses: actions/checkout@v3",
testRes: "uses: actions/checkout@v4",
echoix marked this conversation as resolved.
Show resolved Hide resolved
echoix marked this conversation as resolved.
Show resolved Hide resolved
},
},
// Documentation base URL
{
regex: /https:\/\/megalinter\.github\.io/gm,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ linters:
#### GitHub Actions

```yml
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
```
Expand Down
Loading