Skip to content
Merged
Show file tree
Hide file tree
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
41 changes: 41 additions & 0 deletions .github/workflows/pop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: POP - poutine on poutine

on:
push:
branches: [ main ]
paths:
- .github/workflows/**
- action.yml

pull_request:
branches: [ main ]
paths:
- .github/workflows/**
- action.yml

permissions:
security-events: write
contents: read

jobs:
pop:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
disable-sudo: true
egress-policy: audit
allowed-endpoints: >
github.com:443
api.github.com:443
codeload.github.com:443
objects.githubusercontent.com:443
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./
name: "Run poutine on poutine's own codebase"
id: self-test

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10
with:
sarif_file: results.sarif
5 changes: 5 additions & 0 deletions Dockerfile.action
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ghcr.io/boostsecurityio/poutine:0.9.7@sha256:034326fac021cbedf8df99e90d993ec3553c7649395040bbb8bca05b601de35a

USER root

ENTRYPOINT ["/bin/sh", "-c"]
21 changes: 21 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: poutine - GitHub Actions SAST
description: |
BoostSecurity.io’s poutine detects vulnerabilities and misconfigurations in your GitHub Actions workflows.
Designed to streamline security analysis, poutine scans your repository’s CI/CD pipelines.
It offers insights to secure your software supply chain efficiently.
inputs:
format:
description: 'Report format'
default: sarif
required: true
output:
description: 'Report file output'
default: results.sarif
required: true
runs:
using: docker
image: Dockerfile.action
args:
- |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
poutine -format "$INPUT_FORMAT" analyze_local "$GITHUB_WORKSPACE" > "$INPUT_OUTPUT"