From f1ca08f3f5f064381ab24164709becb985feeff6 Mon Sep 17 00:00:00 2001 From: Aleksandr Misonizhnik Date: Fri, 17 Apr 2026 18:41:48 +0300 Subject: [PATCH 1/2] feat(github): Rename verbosity input to debug (boolean) --- .github/workflows/ci-github.yaml | 2 +- github/README.md | 4 ++-- github/action.yml | 17 ++++++++++++----- github/zap/action.yml | 4 ++-- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-github.yaml b/.github/workflows/ci-github.yaml index 40cbc0d07..603be45f3 100644 --- a/.github/workflows/ci-github.yaml +++ b/.github/workflows/ci-github.yaml @@ -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' diff --git a/github/README.md b/github/README.md index 3d0db8422..49e9ae80b 100644 --- a/github/README.md +++ b/github/README.md @@ -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' diff --git a/github/action.yml b/github/action.yml index 60fd67a42..11c8998b9 100644 --- a/github/action.yml +++ b/github/action.yml @@ -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' @@ -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 }}" @@ -149,7 +154,9 @@ 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 }}" diff --git a/github/zap/action.yml b/github/zap/action.yml index ec76afad6..ba8b863c0 100644 --- a/github/zap/action.yml +++ b/github/zap/action.yml @@ -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) @@ -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) From d2d5a01f08c909ac8ace2956337f69f0a9277f2f Mon Sep 17 00:00:00 2001 From: Aleksandr Misonizhnik Date: Sat, 18 Apr 2026 01:45:03 +0300 Subject: [PATCH 2/2] fix(github): Pass project model flag to action CLI --- github/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/action.yml b/github/action.yml index 11c8998b9..92c50cc53 100644 --- a/github/action.yml +++ b/github/action.yml @@ -160,7 +160,7 @@ runs: 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[@]}"