Skip to content

Commit cb7baf1

Browse files
samuelho-devclaude
andcommitted
fix: disable gitleaks PR comments and revert trivy to v0.33.1
- gitleaks: Disable PR comments (GITLEAKS_ENABLE_COMMENTS=false) to avoid 'Resource not accessible by integration' when callers don't grant pull-requests:write. Also remove invalid 'args' input (v2.x node action doesn't accept args, uses env vars instead). - trivy: Revert to v0.33.1 — the v0.35.0 action has incompatible argument passing that prevents SARIF file generation with v0.65.0 binary. v0.33.1 bundles a working trivy version natively. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 43b564f commit cb7baf1

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/gitleaks-scan.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,8 @@ jobs:
7373
GITLEAKS_CONFIG: ${{ inputs.config-path }}
7474
GITLEAKS_BASELINE: ${{ inputs.baseline-path }}
7575
GITLEAKS_LOG_LEVEL: ${{ inputs.log-level }}
76-
with:
77-
args: >
78-
--source=${{ inputs.scan-path }}
79-
--report-format=${{ inputs.format }}
80-
--report-path=gitleaks-results.${{ inputs.format }}
81-
--log-level=${{ inputs.log-level }}
82-
--redact
83-
${{ inputs.config-path != '' && format('--config={0}', inputs.config-path) || '' }}
84-
${{ inputs.baseline-path != '' && format('--baseline-path={0}', inputs.baseline-path) || '' }}
85-
${{ inputs.fail-on-findings == false && '--no-fail' || '' }}
76+
GITLEAKS_ENABLE_COMMENTS: false
77+
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false
8678

8779
- name: Count findings
8880
id: count

.github/workflows/trivy-scan.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: Run Trivy scanner
7878
id: scan
79-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
79+
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
8080
with:
8181
scan-type: ${{ inputs.scan-type }}
8282
scan-ref: ${{ inputs.scan-ref }}
@@ -88,7 +88,6 @@ jobs:
8888
skip-dirs: ${{ inputs.skip-dirs }}
8989
timeout: ${{ inputs.timeout }}
9090
trivyignores: '.trivyignore'
91-
version: 'v0.65.0'
9291

9392
- name: Count findings
9493
id: count

0 commit comments

Comments
 (0)