permissions: contents: read actions: read checks: read on: pull_request: branches: - main push: branches: - main name: Security jobs: secret-scanning: name: Secret Scanning runs-on: ubuntu-latest if: (github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]') steps: - name: Checkout code uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: fetch-depth: 0 persist-credentials: false - uses: Kong/public-shared-actions/security-actions/secret-scan@343896e36ae2bd71d1dd30ce17ac19ed52152395 # 1.1.1 name: Running Secret Scan using Trufflehog with: fail_on_findings: "true" sca: runs-on: ubuntu-latest permissions: contents: write issues: read checks: write pull-requests: write name: Repository Scan if: (github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]') steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: fetch-depth: 0 persist-credentials: false - name: Scan Repository id: sca_repo uses: Kong/public-shared-actions/security-actions/sca@343896e36ae2bd71d1dd30ce17ac19ed52152395 # 6.0.0 with: asset_prefix: openmeter-cloud dir: "." config: .syft.yaml fail_build: "true" scan-gh-workflows: name: Scan GitHub Workflows runs-on: ubuntu-latest steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: fetch-depth: 0 persist-credentials: false - name: Scan GitHub Workflows id: scan_gh_workflows uses: Kong/public-shared-actions/security-actions/scan-gh-workflows@343896e36ae2bd71d1dd30ce17ac19ed52152395 # 5.0.2 with: fail_on_findings: "true" github_token: ${{ secrets.GITHUB_TOKEN }}