Skip to content

Commit 713b406

Browse files
author
Mathis Loussert
committed
Remove Bandit rules already check by Ruff
1 parent 2ff1069 commit 713b406

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/bandit_sonar.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616

1717
jobs:
1818
bandit:
19+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1920
runs-on: ubuntu-latest
2021
steps:
2122
- uses: actions/checkout@v4
@@ -27,7 +28,7 @@ jobs:
2728
excluded_paths: ./test/
2829
level: MEDIUM
2930
confidence: HIGH
30-
31+
skips: B101,B102,B103,B104,B105,B106,B107,B108,B110,B112,B113,B201,B202,B301,B302,B303,B304,B305,B306,B307,B308,B310,B311,B312,B313,B314,B315,B316,B317,B318,B319,B321,B323,B324,B501,B502,B503,B504,B505,B506,B507,B508,B509,B601,B602,B603,B604,B605,B606,B607,B608,B609,B610,B611,B612,B701,B702,B704
3132
- name: Upload SARIF file to GitHub
3233
uses: github/codeql-action/upload-sarif@v3
3334
with:
@@ -36,6 +37,7 @@ jobs:
3637

3738
sonarcloud:
3839
name: SonarCloud Scan
40+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
3941
runs-on: ubuntu-latest
4042
steps:
4143
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)