Skip to content

Commit

Permalink
add brakeman step
Browse files Browse the repository at this point in the history
  • Loading branch information
SylivanKenobi committed Nov 12, 2024
1 parent e16d612 commit b6dfe30
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ci/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ func (m *Ci) Lint(ctx context.Context, dir *dagger.Directory) (string, error) {
Stdout(ctx)
}

// Returns the Sast report as a file
func (m *Ci) Sast(ctx context.Context, directory *dagger.Directory) *dagger.File {
return dag.Container().
From("presidentbeef/brakeman:latest").
WithMountedDirectory("/app", directory).
WithWorkdir("/app").
WithExec([]string{"/usr/src/app/bin/brakeman", }).
File("/app/brakeman-output.tabs")
}


// Creates a PostgreSQL service for local testing based on the official image with the provided version. If no version is provided, 'latest' will be used.
func (m *Ci) Postgres(
_ context.Context,
Expand Down

0 comments on commit b6dfe30

Please sign in to comment.