set path #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Purpose: Run a static analysis code checker against the repo. | |
name: Check Security | |
# This is a reusable workflow called by the pipeline. | |
on: | |
push: # temp | |
workflow_call: | |
workflow_dispatch: | |
permissions: read-all | |
jobs: | |
check-security: | |
name: MegaLint Checkov | |
runs-on: ubuntu-latest | |
# This condition prevents duplicate runs. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Config File | |
run: cp Testing/Linting/MegaLinter/.mega-linter-security.yml .mega-linter.yml | |
- name: Check Security | |
uses: oxsecurity/megalinter/flavors/security@latest |