File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ trigger :
2
+ branches :
3
+ include :
4
+ - ' *' # Runs on all branches when pushed
5
+
6
+ pr :
7
+ branches :
8
+ include :
9
+ - ' *' # Runs on all pull requests
10
+
11
+ jobs :
12
+ - job : BuildAndTest
13
+ displayName : " Build and Test"
14
+ pool :
15
+ vmImage : ubuntu-latest
16
+ steps :
17
+ - script : echo Hello, world!
18
+ displayName : ' Run a one-line script'
19
+
20
+ - script : |
21
+ echo Add other tasks to build, test, and deploy your project.
22
+ echo See https://aka.ms/yaml
23
+ displayName: 'Run a multi-line script'
24
+
25
+ - job : RunSemgrep
26
+ displayName : " Run Semgrep Scan"
27
+ pool :
28
+ vmImage : ubuntu-latest
29
+ steps :
30
+ - checkout : self # Fetch the repository
31
+
32
+ - script : |
33
+ echo "Installing Semgrep..."
34
+ pip install semgrep
35
+ displayName: "Install Semgrep"
36
+
37
+ - script : |
38
+ echo "Running Semgrep scan..."
39
+ semgrep ci --config p/security-audit --config p/owasp-top-ten --config p/javascript --config p/python
40
+ displayName: "Run Semgrep Scan"
You can’t perform that action at this time.
0 commit comments