Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,17 @@ jobs:
chmod +x ./kubectl/kubectl && sudo mv ./kubectl/kubectl /usr/local/bin/kubectl
chmod +x ./helm/helm && sudo mv ./helm/helm /usr/local/bin/helm

- name: Go Setup
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: "scanners/git-repo-scanner/scanner/go.mod"

- name: Verify tools
run: |
kind version
kubectl version || true
helm version
go version

- name: Unit Tests
working-directory: ./scanners/${{ matrix.unit }}/
Expand Down
6 changes: 3 additions & 3 deletions scanners/git-repo-scanner/.helm-docs.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ usecase: "Discover Git repositories"
{{- define "extra.chartAboutSection" -}}
## What is Git-Repo-Scanner?

Git-Repo-Scanner is a small Python script which discovers repositories on GitHub or GitLab. The main purpose of this scanner
Git-Repo-Scanner is a small Go project which discovers repositories on GitHub or GitLab. The main purpose of this scanner
is to provide a cascading input for the [gitleaks](https://www.securecodebox.io/docs/scanners/gitleaks) and [semgrep](https://www.securecodebox.io/docs/scanners/semgrep) scanners.
{{- end }}

Expand All @@ -36,9 +36,9 @@ The scanner options can be divided into two groups for Gitlab and GitHub. You ca
repository type with the option:

```bash
--git-type github
--git-type GitHub
or
--git-type Gitlab
--git-type GitLab
```

#### GitHub
Expand Down
5 changes: 2 additions & 3 deletions scanners/git-repo-scanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ The scanner options can be divided into two groups for Gitlab and GitHub. You ca
repository type with the option:

```bash
--git-type github
--git-type GitHub
or
--git-type Gitlab
--git-type GitLab
```

#### GitHub
Expand Down Expand Up @@ -146,4 +146,3 @@ Code of secureCodeBox is licensed under the [Apache License 2.0][scb-license].
[scb-mastodon]: https://infosec.exchange/@secureCodeBox
[scb-slack]: https://owasp.org/slack/invite
[scb-license]: https://github.com/secureCodeBox/secureCodeBox/blob/master/LICENSE

10 changes: 9 additions & 1 deletion scanners/git-repo-scanner/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ includes:
scanner:
taskfile: ../Taskfile.yaml
flatten: true
excludes: [test:unit]
vars:
scannerName: git-repo-scanner

tasks: {}
tasks:
test:unit:
desc: Run unit tests for git-repo-scanner
deps:
- test:setup
cmds:
- bun test {{ .TASKFILE_DIR }}/parser/
- cd {{ .TASKFILE_DIR }}/scanner && go test ./...
3 changes: 1 addition & 2 deletions scanners/git-repo-scanner/docs/README.ArtifactHub.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repository type with the option:
```bash
--git-type github
or
--git-type Gitlab
--git-type gitlab
```

#### GitHub
Expand Down Expand Up @@ -168,4 +168,3 @@ Code of secureCodeBox is licensed under the [Apache License 2.0][scb-license].
[scb-mastodon]: https://infosec.exchange/@secureCodeBox
[scb-slack]: https://owasp.org/slack/invite
[scb-license]: https://github.com/secureCodeBox/secureCodeBox/blob/master/LICENSE

3 changes: 1 addition & 2 deletions scanners/git-repo-scanner/docs/README.DockerHub-Scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repository type with the option:
```bash
--git-type github
or
--git-type Gitlab
--git-type gitlab
```

#### GitHub
Expand Down Expand Up @@ -124,4 +124,3 @@ As for any pre-built image usage, it is the image user's responsibility to ensur
[scb-mastodon]: https://infosec.exchange/@secureCodeBox
[scb-slack]: https://owasp.org/slack/invite
[scb-license]: https://github.com/secureCodeBox/secureCodeBox/blob/master/LICENSE

Loading
Loading