Skip to content

Commit 8e52a33

Browse files
author
andream16
committed
Adding meaningful repository to be scanned and removing embedded GOARCH/GOOS platform when building images.
1 parent 37acd22 commit 8e52a33

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

new-components/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ RUN CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" \
1717
# Makes memory exploitation harder.
1818
# Add a small overhead at compile time.
1919
GOFLAGS="-buildmode=pie" \
20-
GOOS="linux" \
21-
GOARCH="amd64" \
2220
go build -ldflags "-s -w" -trimpath -o app ${COMPONENT_BINARY_SOURCE_PATH}
2321

2422
# Create a workspace to clone repos to.

new-components/scanners/gosec/component.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: scanner
44
parameters:
55
- name: repo_name
66
type: string
7-
value: tree
7+
value: go-dvwa
88
steps:
99
- name: scanner
1010
image: docker.io/securego/gosec:2.15.0

new-components/targets/git-clone/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ build-target:
2323
# Makes memory exploitation harder.
2424
# Add a small overhead at compile time.
2525
GOFLAGS="-buildmode=pie" \
26-
GOOS="linux" \
27-
GOARCH="amd64" \
2826
go build -ldflags "-s -w" -trimpath -o target ./cmd/git-clone/main.go
2927

3028
image:

new-components/targets/git-clone/component.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: target
44
parameters:
55
- name: repo_url
66
type: string
7-
value: https://github.com/andream16/tree.git
7+
value: https://github.com/sqreen/go-dvwa.git
88
- name: reference
99
type: string
1010
value: master

0 commit comments

Comments
 (0)