Skip to content

Commit

Permalink
Report languages-start-points only for aws-beta, both hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Dec 28, 2023
1 parent 04c5b77 commit 8884022
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Regular Snyk scans of aws-beta and aws-prod
name: Regular Snyk scan of aws-beta

on:
push:
Expand All @@ -15,7 +15,7 @@ env:
KOSLI_API_TOKEN_STAGING: ${{ secrets.KOSLI_API_TOKEN_STAGING }}
KOSLI_API_TOKEN_PROD: ${{ secrets.KOSLI_API_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
AWS_ACCOUNT_ID: ${{ vars.AWS_ACCOUNT_ID_BETA }}
AWS_ACCOUNT_ID: ${{ vars.AWS_ACCOUNT_ID_BETA }} # <<<<<<<
AWS_REGION: ${{ vars.AWS_REGION }}

jobs:
Expand Down Expand Up @@ -53,26 +53,14 @@ jobs:

- name: Run Snyk
run: |
# What https://app.kosli.com says is running in aws-prod
# What https://app.kosli.com says is running in aws-beta
./snyk_scan_live_artifacts_and_report_to_kosli.sh \
"${KOSLI_HOST_PROD}" \
"${KOSLI_API_TOKEN_PROD}" \
aws-prod
aws-beta
# # What https://app.kosli.com says is running in aws-beta
# ./snyk_scan_live_artifacts_and_report_to_kosli.sh \
# "${KOSLI_HOST_PROD}" \
# "${KOSLI_API_TOKEN_PROD}" \
# aws-beta
#
# # What https://staging.app.kosli.com says is running in aws-prod
# ./snyk_scan_live_artifacts_and_report_to_kosli.sh \
# "${KOSLI_HOST_STAGING}" \
# "${KOSLI_API_TOKEN_STAGING}" \
# aws-prod
#
# # What https://staging.app.kosli.com says is running in aws-beta
# ./snyk_scan_live_artifacts_and_report_to_kosli.sh \
# "${KOSLI_HOST_STAGING}" \
# "${KOSLI_API_TOKEN_STAGING}" \
# aws-beta
# What https://staging.app.kosli.com says is running in aws-beta
./snyk_scan_live_artifacts_and_report_to_kosli.sh \
"${KOSLI_HOST_STAGING}" \
"${KOSLI_API_TOKEN_STAGING}" \
aws-beta
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Regular Snyk scan of aws-beta and aws-prod
name: Regular Snyk scans of aws-prod

on:
push:
Expand All @@ -15,7 +15,7 @@ env:
KOSLI_API_TOKEN_STAGING: ${{ secrets.KOSLI_API_TOKEN_STAGING }}
KOSLI_API_TOKEN_PROD: ${{ secrets.KOSLI_API_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
AWS_ACCOUNT_ID: ${{ vars.AWS_ACCOUNT_ID_BETA }}
AWS_ACCOUNT_ID: ${{ vars.AWS_ACCOUNT_ID_PROD }} # <<<<<<<
AWS_REGION: ${{ vars.AWS_REGION }}

jobs:
Expand Down Expand Up @@ -59,20 +59,8 @@ jobs:
"${KOSLI_API_TOKEN_PROD}" \
aws-prod

# # What https://app.kosli.com says is running in aws-beta
# ./snyk_scan_live_artifacts_and_report_to_kosli.sh \
# "${KOSLI_HOST_PROD}" \
# "${KOSLI_API_TOKEN_PROD}" \
# aws-beta
#
# # What https://staging.app.kosli.com says is running in aws-prod
# ./snyk_scan_live_artifacts_and_report_to_kosli.sh \
# "${KOSLI_HOST_STAGING}" \
# "${KOSLI_API_TOKEN_STAGING}" \
# aws-prod
#
# # What https://staging.app.kosli.com says is running in aws-beta
# ./snyk_scan_live_artifacts_and_report_to_kosli.sh \
# "${KOSLI_HOST_STAGING}" \
# "${KOSLI_API_TOKEN_STAGING}" \
# aws-beta
# What https://staging.app.kosli.com says is running in aws-prod
./snyk_scan_live_artifacts_and_report_to_kosli.sh \
"${KOSLI_HOST_STAGING}" \
"${KOSLI_API_TOKEN_STAGING}" \
aws-prod
2 changes: 1 addition & 1 deletion snyk_scan_live_artifacts_and_report_to_kosli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ report_snyk_vulnerabilities_to_kosli()
return
fi

if [ "${flow}" != "differ" ]; then
if [ "${flow}" != "languages-start-points" ]; then
return # Do only one service till all working
fi

Expand Down

0 comments on commit 8884022

Please sign in to comment.