Skip to content

move golangci-lint to github actions#42303

Closed
thaJeztah wants to merge 4 commits intomoby:masterfrom
thaJeztah:golangci_lint_action
Closed

move golangci-lint to github actions#42303
thaJeztah wants to merge 4 commits intomoby:masterfrom
thaJeztah:golangci_lint_action

Conversation

@thaJeztah
Copy link
Member

Test run can be seen on thaJeztah#3

Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I like it 😄

    pkg/pidfile/pidfile.go:43:12: G306: Expect WriteFile permissions to be 0600 or less (gosec)
        if err := ioutil.WriteFile(path, []byte(fmt.Sprintf("%d", os.Getpid())), 0644); err != nil {
                  ^
    pkg/plugins/pluginrpc-gen/main.go:82:33: G306: Expect WriteFile permissions to be 0600 or less (gosec)
        errorOut("error writing file", ioutil.WriteFile(*outputFile, src, 0644))
                                       ^
    testutil/fakecontext/context.go:99:9: G306: Expect WriteFile permissions to be 0600 or less (gosec)
        return ioutil.WriteFile(fp, content, 0644)
               ^
    daemon/graphdriver/graphtest/graphtest_unix.go:310:9: G306: Expect WriteFile permissions to be 0600 or less (gosec)
        return ioutil.WriteFile(path, data, 0700)
               ^
    layer/filestore.go:243:9: G306: Expect WriteFile permissions to be 0600 or less (gosec)
        return ioutil.WriteFile(fms.getMountFilename(mount, "mount-id"), []byte(mountID), 0644)
               ^
    layer/filestore.go:250:9: G306: Expect WriteFile permissions to be 0600 or less (gosec)
        return ioutil.WriteFile(fms.getMountFilename(mount, "init-id"), []byte(init), 0644)
               ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    WARN [runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner.  Replaced by revive.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the golangci_lint_action branch from b0da8b5 to c24a8ac Compare June 16, 2021 20:29
@tonistiigi
Copy link
Member

I think the linter should be runnable(same way as it does in CI) without uploading a PR to github. An obvious choice for us would be to run it inside a container/Dockerfile. No objects to invoking that through github actions workflow then.

@neersighted
Copy link
Member

Closed as this is already done with the new actions CI on master/22.06

@thaJeztah thaJeztah deleted the golangci_lint_action branch April 28, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants