Skip to content

Commit

Permalink
fix the snyk token issue (#348)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
  • Loading branch information
ispeakc0de committed Apr 19, 2023
1 parent a64ce95 commit 749869e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ jobs:
- uses: actions/checkout@v2
- name: Building litmus-snyk-image image
run: make litmus-snyk-image
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

litmus-k8s:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ litmus-redis-load: deps _build_litmus_redis_load _push_litmus_redis_load

_build_litmus_snyk:
@echo "INFO: Building container image for litmuschaos/snyk"
cd custom/security/snyk/ && docker build -t litmuschaos/snyk:1.0 . --build-arg SNYK_TOKEN=${SNYK_TOKEN}
cd custom/security/snyk/ && docker build -t litmuschaos/snyk:1.0 .

_push_litmus_snyk:
@echo "INFO: Publish container litmuschaos/litmuschaos/snyk"
Expand Down
3 changes: 0 additions & 3 deletions custom/security/snyk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM snyk/snyk:linux

ARG SNYK_TOKEN
ENV SNYK_TOKEN=${SNYK_TOKEN}

RUN apt-get update && \
apt-get -y install sudo wget && \
apt-get install -y python3-pip
Expand Down

0 comments on commit 749869e

Please sign in to comment.