diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 642d497..bfb6aae 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -8,6 +8,17 @@ name: 'Dependency Review' on: pull_request: workflow_call: + inputs: + retry-on-snapshot-warnings: + description: 'Enable or disable retrying the action every 10 seconds while waiting for dependency submission actions to complete.' + type: boolean + required: false + default: false + retry-on-snapshot-warnings-timeout: + description: 'Maximum amount of time (in seconds) to retry the action while waiting for dependency submission actions to complete.' + type: number + required: false + default: 120 permissions: contents: read @@ -49,4 +60,5 @@ jobs: # Example: advanced-security/reusable-workflows/.github/dependency-review.yml@main config-file: ${{ steps.config.outputs.config }} comment-summary-in-pr: "always" - retry-on-snapshot-warnings: "true" #This will add a 120s delay on any repos without a snapshot + retry-on-snapshot-warnings: ${{ inputs.retry-on-snapshot-warnings || false }} + retry-on-snapshot-warnings-timeout: ${{ inputs.retry-on-snapshot-warnings-timeout || 120 }}