Setup Reposaur
Overview
Repository | View on Marketplace
This action installs the CLI in a workflow for usage in the next steps.
Usage
- name: Setup Reposaur uses: reposaur/setup-reposaur@v0.1.0
Example
name: Audit Pull
on: pull_request: [main]
jobs: audit: name: Audit runs-on: ubuntu-latest steps: - name: Checkout Policy Library uses: actions/checkout with: repository: reposaur/policy
- name: Setup Reposaur uses: reposaur/setup-reposaur@main
- name: Execute Policies run: | echo "${{ github.event }}" \ | jq -r '.pull_request' \ | rsr exec > report.sarif env: GITHUB_TOKEN: ${{ github.token }}
- name: Upload Report uses: github/codeql-action/upload-sarif@v2 with: sarif_file: report.sarif category: reposaur