-
Notifications
You must be signed in to change notification settings - Fork 92
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: upgrade actions version #852
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,6 @@ jobs: | |
name: Check if all files end in newline | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Linelint | ||
uses: fernandrone/[email protected] | ||
Comment on lines
30
to
31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider updating the linelint action version. While updating the To check for updates and potentially upgrade the linelint action, you can:
For example, if a newer version (e.g., 0.1.0) is available, you could update it like this: - name: Linelint
- uses: fernandrone/[email protected]
+ uses: fernandrone/[email protected] Make sure to review the changelog for any breaking changes before updating.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
goos: windows | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- uses: reviewdog/action-golangci-lint@v2 | ||
with: | ||
|
@@ -48,9 +48,9 @@ jobs: | |
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20" | ||
Comment on lines
+53
to
55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Action Required: Update Go Version in Workflow The workflow is currently using Go version 1.20, while the latest available version is 1.23.1. It's recommended to update the Go version to the latest stable release to benefit from the latest features and security updates.
🔗 Analysis chainApproved: Update to actions/setup-go@v5 with a suggestion This update aligns with the PR objective and brings the action to the latest version. Please review the changelog for any new features or breaking changes: https://github.com/actions/setup-go/blob/main/CHANGELOG.md Also, verify if Go 1.20 is still the desired version for this project. You might want to consider updating to a more recent version if applicable. To check the latest Go version and compare with the one used in the workflow, run: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check the latest Go version and compare with the one in the workflow
latest_go_version=$(curl -sSL https://golang.org/VERSION?m=text | cut -c 3-)
workflow_go_version=$(grep -oP 'go-version: "\K[^"]+' .github/workflows/reviewdog.yml)
echo "Latest Go version: $latest_go_version"
echo "Workflow Go version: $workflow_go_version"
if [ "$latest_go_version" != "$workflow_go_version" ]; then
echo "Consider updating the Go version in the workflow to $latest_go_version"
fi
Length of output: 606 |
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Action Required: Update
actions/cache
to the latest version.The workflow currently uses
actions/cache@v3
, which should be updated to the latest version to ensure compatibility and security. Please update theactions/cache
action to the most recent stable release.actions/cache@v3
toactions/cache@v4
(or the latest available version).🔗 Analysis chain
LGTM! Approved changes to GitHub Actions versions.
The updates to
actions/checkout@v4
andactions/setup-go@v5
are appropriate and align with the PR objectives. These upgrades are crucial for maintaining compatibility and security, especially considering the upcoming end-of-life for Actions running on Node.js 16.To ensure the changes don't introduce any unexpected issues, please verify that the workflow runs successfully after merging this PR. You can do this by:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 109