Skip to content

Commit 5d1f792

Browse files
authored
ci: Create ai-opsec-agent.yml
1 parent 6b467bb commit 5d1f792

File tree

1 file changed

+42
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)