Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: InfraScan Audit

on:
push:
pull_request:

jobs:
infrascan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create Reports Directory
run: |
mkdir -p infrascan-reports
chmod 777 infrascan-reports

- name: Run InfraScan
uses: soldevelo/infrascan@v1.0.5
with:
scanner: comprehensive
format: html
out: infrascan-reports/report.html

- name: Upload InfraScan Report
uses: actions/upload-artifact@v4
if: always() # Upload report even if the scan step fails
with:
name: infrascan-report
path: infrascan-reports/report.html
retention-days: 14