Skip to content

Commit

Permalink
update lint
Browse files Browse the repository at this point in the history
Signed-off-by: bupd <bupdprasanth@gmail.com>
  • Loading branch information
bupd committed Jul 29, 2024
1 parent f3fb414 commit dfd2ff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ jobs:

- name: Call Pull-Request Function
uses: dagger/dagger-for-github@v6.1.0
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: "latest"
verb: call
module: github.com/bishal7679/harbor-cli@v0.6.1
args: pull-request --directory-arg=. --github-token=${{ env.GITHUB_TOKEN }}
args: pull-request --directory-arg=. --github-token=${{ env.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (m *HarborCli) GrepDir(ctx context.Context, directoryArg *dagger.Directory,
func (m *HarborCli) LintCode(ctx context.Context, directoryArg *dagger.Directory) *dagger.Container {
fmt.Println("👀 Running linter with Dagger...")
return dag.Container().
From("golangci/golangci-lint:latest").
From("golangci/golangci-lint:v1.59.1-alpine").
WithMountedDirectory("/src", directoryArg).
WithWorkdir("/src").
WithExec([]string{"golangci-lint", "run", "--timeout", "5m"})
Expand Down

0 comments on commit dfd2ff7

Please sign in to comment.