File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : AI OpSec Agent
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ pull_request :
6
+ paths :
7
+ - " **/*.py"
8
+ - " **/*.js"
9
+ - " **/*.ts"
10
+ - " **/*.java"
11
+ - " **/*.cs"
12
+ - " **/*.bicep"
13
+ - " **/*.yml"
14
+ - " **/*.yaml"
15
+ - " **/*.json"
16
+
17
+
18
+ permissions :
19
+ contents : read
20
+ pull-requests : write # so we can comment on PRs
21
+
22
+ jobs :
23
+ audit :
24
+ runs-on : ubuntu-latest
25
+ name : " Audit Codebase"
26
+ steps :
27
+ - name : Checkout code
28
+ uses : actions/checkout@v4
29
+ - name : Audit Codebase
30
+ uses : Azure-Samples/azure-ai-travel-agents/.github/actions/ai-opsec-agent@main
31
+ with :
32
+ AZURE_OPENAI_ENDPOINT : ${{ secrets.AZURE_OPENAI_ENDPOINT }}
33
+ AZURE_OPENAI_API_KEY : ${{ secrets.AZURE_OPENAI_API_KEY }}
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ output : security-audit.md
36
+
37
+ - name : Upload as artifact
38
+ uses : actions/upload-artifact@v4
39
+ with :
40
+ name : security-audit
41
+ path : security-audit.md
42
+
You can’t perform that action at this time.
0 commit comments