-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (34 loc) · 987 Bytes
/
Copy pathash.yml
File metadata and controls
37 lines (34 loc) · 987 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
name: ASH Security Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install ASH
run: pip install git+https://github.com/awslabs/automated-security-helper.git@v3.2.4
- name: Run ASH scan
run: ash --mode local --fail-on-findings
continue-on-error: true
id: ash
- name: Show findings detail
if: always()
run: ash report 2>/dev/null || cat .ash/ash_output/reports/ash.summary.txt 2>/dev/null || echo "No report available"
- name: Fail if findings
if: steps.ash.outcome == 'failure'
run: exit 1
- name: Upload scan results
uses: actions/upload-artifact@v7
if: always()
with:
name: ash-results
path: .ash/ash_output/