Open Source Compliance #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Open Source Compliance | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: [{ cron: '17 2 * * *' }] | |
| workflow_dispatch: | |
| inputs: | |
| history_depth: | |
| description: 'Commits to scan for secrets (0 = off)' | |
| type: number | |
| default: 0 | |
| # Caller declares the SUPERSET of perms any job in the reusable workflow may use. | |
| # The reusable workflow narrows further per-job — write scopes only land in `summary`. | |
| permissions: | |
| contents: read | |
| security-events: read | |
| actions: read | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| run: | |
| uses: ./.github/workflows/repo-compliance.yml | |
| with: | |
| history_depth: ${{ inputs.history_depth || 0 }} | |
| secrets: inherit |