Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ jobs:
project-root: project-root
token: ${{ secrets.SEQRA_GITHUB_TOKEN }}
artifact-name: ${{ steps.sanitize.outputs.SANITIZED_NAME }}
verbosity: 'debug'
debug: 'true'
opentaint-version : 'v0'
4 changes: 2 additions & 2 deletions github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ jobs:
# Name of uploaded artifact
artifact-name: 'opentaint.sarif'

# Log level
verbosity: 'info'
# Enable debug output ('true' or 'false')
debug: 'false'

# Scan timeout
timeout: '15m'
Expand Down
19 changes: 13 additions & 6 deletions github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ inputs:
upload-artifact:
description: 'Should opentaint-action upload sarif artifact'
default: 'true'
verbosity:
description: 'Log level'
default: 'info'
debug:
description: 'Enable debug output. Set to "true" for verbose logs.'
default: 'false'
timeout:
description: 'Scan timeout'
default: '15m'
Expand Down Expand Up @@ -106,8 +106,13 @@ runs:
COMPILE_ARGS+=(--java-version "${{ inputs.java-version }}")
fi

DEBUG_ARGS=()
if [ "${{ inputs.debug }}" = "true" ]; then
DEBUG_ARGS+=(--debug)
fi

"${{ steps.globals.outputs.OPENTAINT_BIN }}" --quiet "${TOKEN_ARGS[@]}" compile \
--verbosity "${{ inputs.verbosity }}" \
"${DEBUG_ARGS[@]}" \
"${COMPILE_ARGS[@]}" \
--output "${{ steps.globals.outputs.OPENTAINT_PROJECT }}" "${{ inputs.project-root }}"

Expand Down Expand Up @@ -149,11 +154,13 @@ runs:
append_csv_args "ruleset" "${{ inputs.rules-path }}"

CMD+=(--timeout "${{ inputs.timeout }}")
CMD+=(--verbosity "${{ inputs.verbosity }}")
if [ "${{ inputs.debug }}" = "true" ]; then
CMD+=(--debug)
fi

append_csv_args "severity" "${{ inputs.severity }}"

CMD+=(--output "${{ steps.globals.outputs.OPENTAINT_SARIF }}" "${{ steps.globals.outputs.OPENTAINT_PROJECT }}")
CMD+=(--output "${{ steps.globals.outputs.OPENTAINT_SARIF }}" --project-model "${{ steps.globals.outputs.OPENTAINT_PROJECT }}")

"${CMD[@]}"

Expand Down
4 changes: 2 additions & 2 deletions github/zap/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ runs:
opentaint-version: ${{ inputs.opentaint-version }}
rules-path: ${{ inputs.rules-path }}
timeout: ${{ inputs.opentaint-timeout }}
verbosity: 'info'
debug: 'false'
severity: 'warning,error'

- name: Download OpenTaint SARIF artifact (current)
Expand All @@ -110,7 +110,7 @@ runs:
opentaint-version: ${{ inputs.opentaint-version }}
rules-path: ${{ inputs.rules-path }}
timeout: ${{ inputs.opentaint-timeout }}
verbosity: 'info'
debug: 'false'
severity: 'warning,error'

- name: Download OpenTaint SARIF artifact (base)
Expand Down
Loading