Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(OX-5147) add full flag to scm_scan when partial is false #26

Merged
merged 14 commits into from
Jan 25, 2024
Merged
4 changes: 2 additions & 2 deletions images/entrypoint-oxeye-scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ if [ -n "$excludes" ]; then
scm_scan_flags="$scm_scan_flags --excludes $excludes"
fi

if [ "$partial" == "true" ]; then
scm_scan_flags="$scm_scan_flags --partial"
if [ "$partial" == "false" ]; then
scm_scan_flags="$scm_scan_flags --full"
fi

python /app/scm_scan.py $scm_scan_flags
2 changes: 1 addition & 1 deletion oxeye-scan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inputs:
partial:
description: Scan only changes
required: false
default: 'false'
default: 'true'
runs:
using: docker
image: docker://ghcr.io/ox-eye/github-actions/oxeye-scan:v0.0.24
Expand Down
7 changes: 3 additions & 4 deletions oxeye-scan/gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
stages:
- oxeye_code_scan
variables:
OXEYE_SCAN_OXEYE_URL: api.oxeye.net
OXEYE_SCAN_GITLAB_TOKEN: ''
Expand All @@ -8,8 +6,9 @@ variables:
OXEYE_SCAN_WORKSPACE_ID: ''
OXEYE_SCAN_RELEASE: ''
OXEYE_SCAN_EXCLUDES: ''
OXEYE_SCAN_PARTIAL: 'false'
oxeye_code_scan:
OXEYE_SCAN_PARTIAL: 'true'

oxeye_scan:
stage: oxeye_code_scan
image:
name: ghcr.io/ox-eye/github-actions/oxeye-scan:v0.0.24
Expand Down
Loading