From 9a2814b8e88e6ff0dff9ba1f01f7731ac3980805 Mon Sep 17 00:00:00 2001 From: david3107 Date: Thu, 16 Oct 2025 13:05:50 +0200 Subject: [PATCH] fix workflow for new v1.1 --- .github/workflows/gitarmor-on-demand.yml | 16 +++++++++++++--- .github/workflows/gitarmor-scheduled.yml | 14 +++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gitarmor-on-demand.yml b/.github/workflows/gitarmor-on-demand.yml index ea256ab..11ed0ea 100644 --- a/.github/workflows/gitarmor-on-demand.yml +++ b/.github/workflows/gitarmor-on-demand.yml @@ -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: @@ -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 diff --git a/.github/workflows/gitarmor-scheduled.yml b/.github/workflows/gitarmor-scheduled.yml index 789551a..666e554 100644 --- a/.github/workflows/gitarmor-scheduled.yml +++ b/.github/workflows/gitarmor-scheduled.yml @@ -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 }}" \ No newline at end of file + - 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.* \ No newline at end of file