Skip to content

Commit

Permalink
Create iac-codeql.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Barrett authored Apr 25, 2024
1 parent 983a369 commit d9471f0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/iac-codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "CodeQL IaC"

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
analyze:
name: Analyze
runs-on: "ubuntu-latest"
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize and Analyze IaC
id: codeql_iac
uses: advanced-security/codeql-extractor-iac@main

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.codeql_iac.outputs.sarif }}

0 comments on commit d9471f0

Please sign in to comment.