crytic / crytic/slither

Slither wont overwrite .sarif file

Open
#2,676 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the desired feature

Slither should check before running its suite if there exists a .sarif file with the name defined for the current run, e.g.

```
touch latest.sarif
```

```
slither . --sarif latest.sarif
> INFO:Slither:latest.sarif exists already, the overwrite is prevented
```

Contributor guide

Open the contributing guide

Research direction

Start at Slither's CLI handling for the --sarif option and reproduce the command with an existing latest.sarif file. The work is done when Slither reports that the named SARIF file already exists and prevents the run from overwriting it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, security
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.