Skip to content

Commit de1b1a4

Browse files
authored
Merge pull request #213 from omerb97/main
Adding Defender CLI
2 parents 5a849a5 + b8deec4 commit de1b1a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4919
-2560
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: MSDO v1 self-hosted validation
2+
on: push
3+
4+
permissions:
5+
id-token: write
6+
security-events: write
7+
8+
jobs:
9+
msdo-scan:
10+
name: MSDO v1 - Security Scan
11+
12+
runs-on: self-hosted
13+
14+
steps:
15+
16+
# Checkout your code repository to scan
17+
- uses: actions/checkout@v6
18+
19+
# Run MSDO v1
20+
- name: Run MSDO
21+
uses: ./
22+
id: msdo
23+
24+
# Upload results to the Security tab
25+
- name: Upload results to Security tab
26+
uses: github/codeql-action/upload-sarif@v3
27+
if: always()
28+
with:
29+
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Defender CLI v2 self-hosted validation
2+
on:
3+
push:
4+
branches: [main, 'release/**']
5+
workflow_dispatch:
6+
7+
permissions:
8+
id-token: write
9+
security-events: write
10+
11+
jobs:
12+
defender-image-scan:
13+
name: Image Scan (mdc policy)
14+
15+
runs-on: self-hosted
16+
17+
steps:
18+
19+
- uses: actions/checkout@v6
20+
21+
- name: Run Defender CLI - Image Scan
22+
uses: ./v2/
23+
id: defender
24+
with:
25+
command: 'image'
26+
imageName: 'ubuntu:latest'
27+
policy: 'mdc'
28+
break: 'false'
29+
pr-summary: 'true'
30+
31+
- name: Upload results to Security tab
32+
uses: github/codeql-action/upload-sarif@v3
33+
if: always()
34+
with:
35+
sarif_file: ${{ steps.defender.outputs.sarifFile }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,9 @@ ASALocalRun/
329329

330330
# MFractors (Xamarin productivity tool) working folder
331331
.mfractor/
332+
333+
# GitHub Actions Runner
334+
actions-runner/
335+
336+
# Copilot instructions
337+
.github/copilot-instructions.md

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ outputs:
3030
description: A file path to a SARIF results file.
3131
runs:
3232
using: 'node24'
33-
main: 'lib/main.js'
34-
pre: 'lib/pre.js'
35-
post: 'lib/post.js'
33+
main: 'lib/v1/main.js'
34+
pre: 'lib/v1/pre.js'
35+
post: 'lib/v1/post.js'
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)