Skip to content
Open
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
5 changes: 4 additions & 1 deletion cloudbuild/cloudbuild-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ steps:
name: 'gcr.io/cloud-builders/docker'
script: |
#!/bin/sh
docker build -t us-central-docker.pkg.dev/$PROJECT_ID/docker/gosec:vv -f- . <<EOF
docker build -t us-central1-docker.pkg.dev/$PROJECT_ID/docker/gosec:latest -f- . <<EOF
FROM golang:1.22-alpine
RUN wget -O - -q https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.20.0
ENTRYPOINT ["./bin/gosec"]
CMD ["-quiet", "./..."]
EOF

docker push us-central1-docker.pkg.dev/$PROJECT_ID/docker/gosec:latest
waitFor: ['-']

options:
automapSubstitutions: true
logging: CLOUD_LOGGING_ONLY
7 changes: 1 addition & 6 deletions cloudbuild/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ steps:
# use this instead of securego/gosec due to frequency of golang updates
- id: securego/gosec
name: golang:1.22-alpine
script: |
#!/bin/sh
cd src
wget -O - -q https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.20.0
echo "running gosec..."
./bin/gosec -quiet ./...
name: 'us-central1-docker.pkg.dev/chatparser/docker/gosec:latest'
waitFor: ['-']

- id: semgrep/code
Expand Down