Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/gitarmor-on-demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ on:
description: 'Organization name'
required: true
default: 'dearmory'
debug:
description: 'Enable debug output (true/false)'
required: false
default: 'false'
level:
description: 'Level'
description: 'Level (repository_only, organization_only, organization_and_repository)'
required: true
default: 'repository'
type: choice
options:
- repository_only
- organization_only
- organization_and_repository
default: 'repository_only'

jobs:
run-gitarmor:
Expand All @@ -40,7 +49,8 @@ jobs:
repo: ${{ github.event.inputs.repo }}
org: ${{ github.event.inputs.org }}
token: ${{ steps.app-token.outputs.token }}
level: ${{ github.event.inputs.level }}
level: ${{ github.event.inputs.level }}
debug: ${{ github.event.inputs.debug }}
policy-dir: './policies'

- name: Print report to Job summary
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/gitarmor-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@ jobs:
repo: ${{ github.repository }}
org: ${{ github.repository_owner }}
token: ${{ steps.app-token.outputs.token }}
level: 'organization'
level: 'organization_only'
debug: 'false'
policy-dir: './policies'

- name: Get the output
run: echo "Check results - ${{ steps.gitarmor.outputs.check-results }}"
- 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.*