GHAST (GitHub Actions Static Analysis Tool) is a tool to analyze the security posture of your GitHub Actions. The best way to do that is to automate the analysis of your Action workflows with Ghast.
This workflow will work for 99% of users. It will scan all the workflow files it finds in ./.github/workflow/
. If you want to customize your Ghast scan please feel free to use one of the examples in the "Additional Ghast workflow options" section.
name: 'RunGhast'
on:
push:
jobs:
RunGhast:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 # v3.5.3
- name: "Run Ghast"
uses: "bin3xish477/ghast@43c471b8e05599d67f618ecccfc8d7b9281bfd9b"
name: 'RunGhast'
on:
push:
branches:
- main
- dev
- pauls-baseline
jobs:
RunGhast:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 # v3.5.3
- name: "Run Ghast"
uses: "bin3xish477/ghast@ee733379e314d44f1a960a70339ee5e5d19e404d"
name: 'RunGhast'
on:
push:
jobs:
RunGhast:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 # v3.5.3
- name: "Run Ghast"
uses: "bin3xish477/ghast@ee733379e314d44f1a960a70339ee5e5d19e404d"
with:
ignore-checks: 'check_for_inline_script check_for_cache_action_usage'
name: 'RunGhast'
on:
push:
paths:
- '.github/workflows/**'
jobs:
RunGhast:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 # v3.5.3
- name: "Run Ghast"
uses: "bin3xish477/ghast@ee733379e314d44f1a960a70339ee5e5d19e404d"
with:
dir: ".github/workflows/my_workflows/"
name: 'RunGhast'
on:
push:
jobs:
RunGhast:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 # v3.5.3
- name: "Run Ghast"
uses: "bin3xish477/ghast@ee733379e314d44f1a960a70339ee5e5d19e404d"
with:
verbose: true
no-summary: true
ignore-warnings: true
name: 'RunGhast'
on:
push:
branches:
- main
- dev
paths:
- '.github/workflows/**'
jobs:
RunGhast:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 # v3.5.3
- name: "Run Ghast"
uses: "bin3xish477/ghast@ee733379e314d44f1a960a70339ee5e5d19e404d"
with:
dir: ".github/workflows/my_workflows/"
verbose: true
no-summary: true
ignore-checks: 'check_for_inline_script check_for_cache_action_usage'