Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cx-ruiaraujo committed Oct 25, 2024
1 parent e8e8514 commit 6204852
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/go-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,13 @@ jobs:
- name: Set Output Permissions
run: |
sudo chmod -R 777 ./e2e
# - name: Create and Set Output Permissions
# run: |
# mkdir -p ./e2e/output # Creates output folder if it doesn't exist
# sudo chmod -R 777 ./e2e/output # Sets full permissions for output
- name: Create and Set Output Permissions
run: |
mkdir -p ./e2e/output # Creates output folder if it doesn't exist
sudo chmod -R 777 ./e2e/output # Sets full permissions for output
- name: Run docker image and generate results.json
run: |
docker run --user $(id -u):$(id -g) -v ${PWD}/e2e:/path scan --output-path /path/e2e/output --output-name E2E_CLI_041_RESULT --report-formats json,sarif,glsast -p git::https://github.com/dockersamples/example-voting-app
- name: Run E2E Tests
env:
E2E_KICS_DOCKER: kics:e2e-tests-${{ github.sha }}
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
# Runtime image
# Ignore no User Cmd since KICS container is stopped afer scan
# kics-scan ignore-line
FROM ruigomes99/git-sed:latest
FROM cgr.dev/chainguard/git:latest

USER 65532

ENV TERM xterm-256color

Expand Down

0 comments on commit 6204852

Please sign in to comment.