Skip to content

Commit 9c672a9

Browse files
authored
Merge pull request #34 from dcodx/workflow/fix-input
fix workflow for new v1.1
2 parents 6447202 + 9a2814b commit 9c672a9

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/gitarmor-on-demand.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@ on:
1111
description: 'Organization name'
1212
required: true
1313
default: 'dearmory'
14+
debug:
15+
description: 'Enable debug output (true/false)'
16+
required: false
17+
default: 'false'
1418
level:
15-
description: 'Level'
19+
description: 'Level (repository_only, organization_only, organization_and_repository)'
1620
required: true
17-
default: 'repository'
21+
type: choice
22+
options:
23+
- repository_only
24+
- organization_only
25+
- organization_and_repository
26+
default: 'repository_only'
1827

1928
jobs:
2029
run-gitarmor:
@@ -40,7 +49,8 @@ jobs:
4049
repo: ${{ github.event.inputs.repo }}
4150
org: ${{ github.event.inputs.org }}
4251
token: ${{ steps.app-token.outputs.token }}
43-
level: ${{ github.event.inputs.level }}
52+
level: ${{ github.event.inputs.level }}
53+
debug: ${{ github.event.inputs.debug }}
4454
policy-dir: './policies'
4555

4656
- name: Print report to Job summary

.github/workflows/gitarmor-scheduled.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ jobs:
2828
repo: ${{ github.repository }}
2929
org: ${{ github.repository_owner }}
3030
token: ${{ steps.app-token.outputs.token }}
31-
level: 'organization'
31+
level: 'organization_only'
32+
debug: 'false'
3233
policy-dir: './policies'
3334

34-
- name: Get the output
35-
run: echo "Check results - ${{ steps.gitarmor.outputs.check-results }}"
35+
- name: Print report to Job summary
36+
run: |
37+
cat output-report.md >> $GITHUB_STEP_SUMMARY
38+
39+
- name: Upload the reports as Actions artifact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: gitarmor-evaluation-report
43+
path: output-report.*

0 commit comments

Comments
 (0)