Skip to content

Commit b3eb0e1

Browse files
a-hjoerdav
andauthored
chore: bump Github Actions versions (were using old Node.js versions) (#122)
* chore: bump Github Actions versions (were using old Node.js versions) * chore: fixup lint errors * chore: lint --------- Co-authored-by: Joe Davidson <[email protected]>
1 parent 960ff9f commit b3eb0e1

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
steps:
1515
-
1616
name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
2020
-
2121
name: Set up Go
22-
uses: actions/setup-go@v2
22+
uses: actions/setup-go@v5
2323
with:
2424
go-version: 1.22
2525

@@ -50,12 +50,12 @@ jobs:
5050
steps:
5151
-
5252
name: Checkout
53-
uses: actions/checkout@v2
53+
uses: actions/checkout@v4
5454
with:
5555
fetch-depth: 0
5656
-
5757
name: Install NIX
58-
uses: cachix/install-nix-action@v18
58+
uses: cachix/install-nix-action@v25
5959
with:
6060
nix_path: nixpkgs=channel:nixos-unstable
6161
- name: Update Flake

.github/workflows/test.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
test:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-go@v2
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-go@v5
1111
with:
1212
go-version: "1.22"
1313
- name: Run Unit tests
@@ -23,9 +23,9 @@ jobs:
2323
lint:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions/setup-go@v3
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-go@v5
2828
with:
2929
go-version: 1.22
3030
- name: golangci-lint
31-
uses: golangci/golangci-lint-action@v3
31+
uses: golangci/golangci-lint-action@v6

.golangci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ linters:
55
- dogsled
66
- dupl
77
- errcheck
8-
- exportloopref
8+
- copyloopvar
99
- gochecknoinits
1010
- goconst
1111
- gocritic
1212
- gocyclo
1313
- gofmt
1414
- goimports
15-
- gomnd
15+
- mnd
1616
- goprintffuncname
1717
- gosec
1818
- gosimple

run/interpreter.go

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ func (i interpreter) executeShell(
100100
if err != nil {
101101
return fmt.Errorf("failed to parse task: %w", err)
102102
}
103+
// Ignore G115: Potential integer overflow when converting between integer types
104+
// "Fd()" ultimately returns a SysFd value, which is an int.
105+
//nolint:gosec
103106
if os.Getenv("NO_COLOR") != "1" && term.IsTerminal(int(os.Stdout.Fd())) {
104107
env = append(env, "CLICOLOR_FORCE=1", "FORCE_COLOR=1")
105108
}

run/run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func getInputs(task models.Task, inputs, env []string) ([]string, error) {
9191
if environmentContainsInput(env, n) {
9292
continue
9393
}
94-
return nil, fmt.Errorf(taskUsage(task))
94+
return nil, errors.New(taskUsage(task))
9595
}
9696
return result, nil
9797
}

0 commit comments

Comments
 (0)