Skip to content

Commit 5fbf32a

Browse files
add azure pipeline example
1 parent e0a132d commit 5fbf32a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

azure-pipelines.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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"

0 commit comments

Comments
 (0)