Skip to content

Commit

Permalink
Add GitHub Security Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jan 4, 2024
1 parent 625429e commit f1572bf
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Security Scan
on:
pull_request:
workflow_dispatch:
inputs:
tag:
description: "The tagged release to check"
required: true

jobs:
scan_repository:
name: Scan repository
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
submodules: recursive

- name: Scan assets
uses: hugoalh/[email protected]
with:
found_summary: true
statistics_summary: true

scan_asset:
name: Scan release assets
runs-on: ubuntu-latest
# This only runs as part of workflow dispatch, otherwise only scan the repository
if: ${{ github.event.inputs.tag != '' }}
steps:

- name: Download assets (Specific Tag)
if: ${{ github.event.inputs.tag != '' }}
uses: robinraju/[email protected]
with:
tag: ${{ github.event.inputs.tag }}
extract: true
fileName: "godot-orchestrator*plugin.zip"

- name: Scan assets
uses: hugoalh/[email protected]
with:
found_summary: true
statistics_summary: true

0 comments on commit f1572bf

Please sign in to comment.