Skip to content

Commit 8285a2c

Browse files
committed
fix: add error serverity for semgrep
1 parent 5d11104 commit 8285a2c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/secure.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
security-events: write
1818
steps:
1919
- uses: actions/checkout@v4
20-
- run: semgrep scan --sarif --output=semgrep.sarif --error --severity=WARNING
20+
- run: semgrep scan --sarif --output=semgrep.sarif --severity=WARNING --severity=ERROR
2121
env:
2222
SEMGREP_RULES: >-
2323
p/bandit
@@ -26,6 +26,7 @@ jobs:
2626
p/cwe-top-25
2727
p/default
2828
p/gitlab-bandit
29+
p/gitlab
2930
p/gitleaks
3031
p/insecure-transport
3132
p/owasp-top-ten

selvpcclient/commands/keypair.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class List(ListCommand):
8282
sorting_support = True
8383
columns = ['name', 'user_id', 'regions']
8484
_formatters = {
85+
# nosemgrep: python.lang.maintainability.return.return-not-in-function
8586
"regions": lambda line: "\n".join(line["regions"])
8687
}
8788

0 commit comments

Comments
 (0)