Run GitArmor Action - Scheduled #199
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: Run GitArmor Action - Scheduled | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| run-gitarmor: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/create-github-app-token@v1 | |
| id: app-token | |
| with: | |
| app-id: ${{ secrets.GITARMOR_APP_ID }} | |
| private-key: ${{ secrets.GITARMOR_APP_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| - name: Checkout policies | |
| uses: actions/checkout@v4 | |
| - name: Run GitArmor Action | |
| uses: dcodx/gitarmor@main | |
| id: gitarmor | |
| #env: | |
| # DEBUG: true | |
| with: | |
| repo: ${{ github.repository }} | |
| org: ${{ github.repository_owner }} | |
| token: ${{ steps.app-token.outputs.token }} | |
| level: 'organization_only' | |
| debug: 'false' | |
| policy-dir: './policies' | |
| - name: Print report to Job summary | |
| run: | | |
| cat output-report.md >> $GITHUB_STEP_SUMMARY | |
| - name: Upload the reports as Actions artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gitarmor-evaluation-report | |
| path: output-report.* |