Skip to content

Commit

Permalink
Use the golangci-lint GitHub Action
Browse files Browse the repository at this point in the history
It seems that there's a change in golangci-lint that makes CI runs fail.

#399

Use the official GitHub Action for golangci-lint instead of installing
it manually.

#402
  • Loading branch information
draftcode committed Aug 21, 2024
1 parent ae0e446 commit 2db6c6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run --out-format github-actions
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
2 changes: 1 addition & 1 deletion cmd/av/pr_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func getQueryVariables() (map[string]interface{}, error) {
var variables = map[string]interface{}{
"repoOwner": graphql.String(repository.Owner),
"repoName": graphql.String(repository.Name),
"prNumber": graphql.Int(prNumber),
"prNumber": graphql.Int(prNumber), //nolint:gosec
}
return variables, nil
}
Expand Down
4 changes: 2 additions & 2 deletions internal/gh/pullrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ type GetPullRequestsInput struct {
HeadRefName string
BaseRefName string
States []githubv4.PullRequestState
First int64
First int32
After string
}

Expand Down Expand Up @@ -210,7 +210,7 @@ func (c *Client) MarkPullRequestReadyForReview(
type RepoPullRequestOpts struct {
Owner string
Repo string
First int64
First int32
After string
States []githubv4.PullRequestState
}
Expand Down

0 comments on commit 2db6c6c

Please sign in to comment.