Aller au contenu

GitHub Actions

Ce contenu n’est pas encore disponible dans votre langue.

Run proxyaudit in your GitHub Actions workflows to catch reverse proxy / gateway misconfigurations before they reach production.

- name: Install proxyaudit
run: go install github.com/cerberauth/proxyaudit@latest
- name: Scan proxy configuration
run: proxyaudit scan https://staging.example.com

Or use the Docker image to avoid needing Go:

- name: Scan proxy configuration
run: docker run --rm ghcr.io/cerberauth/proxyaudit scan https://staging.example.com
name: Proxy security scan
on:
pull_request:
jobs:
proxy-scan:
runs-on: ubuntu-latest
steps:
- name: Scan for proxy misconfigurations
run: docker run --rm ghcr.io/cerberauth/proxyaudit scan ${{ vars.STAGING_URL }}

proxyaudit scan already exits 1 when findings are present and 2 on a runtime/connection error, so no extra scripting is needed to fail the build — a non-zero exit fails the step automatically.


Use --output/--output-format to also write a machine-readable report (JSON by default) alongside the terminal output, and upload it as a build artifact:

- name: Scan proxy configuration
run: proxyaudit scan ${{ vars.STAGING_URL }} --output report.json
- name: Upload report
if: always()
uses: actions/upload-artifact@v4
with:
name: proxyaudit-report
path: report.json

--report-url posts the report directly to an HTTP endpoint (e.g. a dashboard or ticketing webhook) instead of, or in addition to, a file:

- name: Scan and report
run: |
proxyaudit scan ${{ vars.STAGING_URL }} \
--report-url ${{ secrets.REPORT_ENDPOINT }} \
--report-header "Authorization=Bearer ${{ secrets.REPORT_TOKEN }}"