forked from rancherlabs/scc-product-version-verifier
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (57 loc) · 1.95 KB
/
debug.yml
File metadata and controls
63 lines (57 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Manual SCC Product Version Verification
on:
workflow_dispatch:
inputs:
product-name:
description: 'Product name to verify'
required: true
type: string
version:
description: 'Version to verify (e.g., v1.2.3 or 1.2.3-rc1)'
required: true
type: string
staging-code:
description: 'SCC staging registration code (optional - if not provided, staging verification is skipped)'
required: false
default: ''
production-code:
description: 'SCC production registration code (optional - if not provided, production verification is skipped)'
required: false
default: ''
fail-on-error:
description: 'Fail the workflow if verification fails'
required: false
type: boolean
default: false
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Mask sensitive registration codes
shell: bash
run: |
if [ -n "${{ inputs.staging-code }}" ]; then
echo "::add-mask::${{ inputs.staging-code }}"
fi
if [ -n "${{ inputs.production-code }}" ]; then
echo "::add-mask::${{ inputs.production-code }}"
fi
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0
- name: Download SCC Product Version Verifier
uses: ./actions/download
- name: Verify Product Version
uses: ./actions/verify
with:
product-name: ${{ inputs.product-name }}
version: ${{ inputs.version }}
staging-code: ${{ inputs.staging-code }}
production-code: ${{ inputs.production-code }}
fail-on-error: ${{ inputs.fail-on-error }}
- name: Verification Complete
shell: bash
run: |
echo "✅ Verification workflow completed"
echo "Check the step summary for detailed results"