Skip to content

Bump JetBrains/qodana-action from 2024.1.4 to 2024.1.5 #3111

Bump JetBrains/qodana-action from 2024.1.4 to 2024.1.5

Bump JetBrains/qodana-action from 2024.1.4 to 2024.1.5 #3111

Workflow file for this run

name: Semgrep
permissions: read-all
on:
pull_request: {}
push:
branches: [master, v2.dev, v3.dev]
jobs:
semgrep:
name: Scan
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
container:
# Incompatible with Harden Runner
image: returntocorp/semgrep
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- run: semgrep scan --sarif --output=results.sarif
env:
SEMGREP_RULES: >-
p/java
p/github-actions
p/semgrep-rule-lints
p/semgrep-misconfigurations
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: results.sarif
- name: Remove duplicate rules
if: steps.check_files.outputs.files_exists == 'true'
run: jq -c '.runs[0].tool.driver.rules |= unique_by(.id)' < results.sarif > semgrep.sarif
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3.25.4
if: steps.check_files.outputs.files_exists == 'true'
continue-on-error: true
with:
sarif_file: semgrep.sarif