Skip to content

Commit

Permalink
added error check and run instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
frjcomp committed Jul 31, 2024
1 parent 55fda1b commit da1ccf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

Scan GitLab job output logs for secrets

# Get Started

Download the binary from the [Releases](https://github.com/CompassSecurity/pipeleak/releases) page.

```bash
pipeleak scan --token glpat-xxxxxxxxxxx --gitlab https://gitlab.com -v
```
2 changes: 1 addition & 1 deletion src/pipeleak/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewScanCmd() *cobra.Command {
}

scanCmd.Flags().StringVarP(&gitlabApiToken, "token", "t", "", "GitLab API Token")
scanCmd.MarkFlagRequired("token")
err = scanCmd.MarkFlagRequired("token")
if err != nil {
log.Error().Msg("Unable to require token flag: " + err.Error())
}
Expand Down

0 comments on commit da1ccf9

Please sign in to comment.