Skip to content
Open
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
19 changes: 19 additions & 0 deletions .github/workflows/security-audit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Security Audit
on:
workflow_dispatch:
permissions:
contents: read
jobs:
audit:
name: Audit GitHub Actions Security
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Run security audit
run: python scripts/audit_gha_security.py
11 changes: 10 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,22 @@ test *args=("-short ./..."):

go test {{ args }} -covermode set -coverprofile=cover.out

# Execute Python script tests (e.g., license generation)
# Execute Python script tests (e.g., license generation, security audit)
test-scripts:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}

python3 scripts/test_licenses.py
cd scripts && python3 -m unittest test_audit_gha_security -v

# Audit GitHub Actions workflows for security best practices
audit-gha-security:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}

python3 scripts/audit_gha_security.py

# Uploads distributions to object storage. If invoked with `env CI=true` then all architectures supported by the Go toolchain are uploaded.
upload *args:
Expand Down
Loading
Loading