-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1018 Bytes
/
homogeneity-check.yml
File metadata and controls
42 lines (33 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Homogeneity Check
on:
push:
pull_request:
jobs:
check:
name: Agent Secret Scan (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-22.04, macos-14, windows-2022]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install ripgrep (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y ripgrep
- name: Install ripgrep (macOS)
if: runner.os == 'macOS'
run: brew install ripgrep
- name: Install ripgrep (Windows)
if: runner.os == 'Windows'
run: choco install ripgrep -y
- name: Run Agent Secret Scan (Bash)
if: runner.os != 'Windows'
run: bash scripts/scan-agent-secrets.sh --fail-on-high .
- name: Run Agent Secret Scan (Bash on Windows)
if: runner.os == 'Windows'
shell: bash
run: bash scripts/scan-agent-secrets.sh --fail-on-high .