diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 52ad54d7..21d520e9 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,7 +21,7 @@ jobs: env: CGO_ENABLED: 0 with: - version: v1.40.0 + version: latest - uses: github/super-linter@v3 env: DEFAULT_BRANCH: master diff --git a/act/runner/runner_test.go b/act/runner/runner_test.go index aacf4333..cabdaec5 100644 --- a/act/runner/runner_test.go +++ b/act/runner/runner_test.go @@ -16,7 +16,7 @@ import ( "github.com/nektos/act/pkg/model" ) -var baseImage string = "node:12-buster-slim" +var baseImage = "node:12-buster-slim" func init() { if p := os.Getenv("ACT_TEST_IMAGE"); p != "" { diff --git a/act/runner/step_context.go b/act/runner/step_context.go index b06df3e7..d31f2d7e 100644 --- a/act/runner/step_context.go +++ b/act/runner/step_context.go @@ -560,7 +560,7 @@ func (sc *StepContext) execAsDocker(ctx context.Context, action *model.Action, a if !correctArchExists { log.Debugf("image '%s' for architecture '%s' will be built from context '%s", image, rc.Config.ContainerArchitecture, contextDir) - var actionContainer container.Container = nil + var actionContainer container.Container if localAction { actionContainer = sc.RunContext.JobContainer }