-
Notifications
You must be signed in to change notification settings - Fork 21
chore: DEVPLAT-7373 fix Node.js 20 deprecated GitHub Actions #50
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
Changes from all 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 |
|---|---|---|
|
|
@@ -15,13 +15,13 @@ jobs: | |
| steps: | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v1 | ||
| uses: actions/setup-go@v6 | ||
|
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. Unquoted
|
||
| with: | ||
| go-version: 1.20 | ||
| id: go | ||
|
|
||
| - name: Check out code into the Go module directory | ||
| uses: actions/checkout@v2 | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Run test | ||
| run: make test | ||
|
|
@@ -38,27 +38,27 @@ jobs: | |
| steps: | ||
|
|
||
| - name: Login to GitHub Container Registry | ||
| uses: docker/login-action@v1 | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| registry: ghcr.io | ||
| username: scribdbot | ||
| password: ${{ secrets.SCRIBDBOT_GH_CONTAINER_REGISTRY_TOKEN }} | ||
|
|
||
| - name: Check out code into the Go module directory | ||
| uses: actions/checkout@v2 | ||
| uses: actions/checkout@v6 | ||
|
|
||
| # required for the changelog to work correctly | ||
| - name: Unshallow | ||
| run: git fetch --prune --unshallow | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v1 | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: 1.20 | ||
| id: go | ||
|
|
||
| - name: Run goreleaser | ||
| uses: goreleaser/goreleaser-action@v5 | ||
| uses: goreleaser/goreleaser-action@v7 | ||
|
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. Removed
|
||
| with: | ||
| version: latest | ||
| args: release --rm-dist | ||
|
|
||


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.
setup-go@v6 before checkout breaks default caching
High Severity
In the
testjob,actions/setup-go@v6runs beforeactions/checkout@v6. Unlike@v1,setup-go@v6enables dependency caching by default and needsgo.modfor cache key generation. Since the repo hasn't been checked out yet,go.moddoesn't exist, and the step will fail with a "Dependencies file is not found" error. Thereleasejob has the correct order (checkout first), but thetestjob does not.Additional Locations (1)
.github/workflows/cicd.yml#L23-L24