A CLI tool to verify product versions in SUSE Customer Center.
scc-product-version-verifier is a command-line tool that interacts with the
SUSE Customer Center (SCC) API to verify if a specific product, version,
and architecture combination exists.
This project uses GoReleaser to manage builds. To build the project, you can run:
goreleaser build --snapshot --cleanThe main command of this tool is curl-verify.
This command mimics using curl to check if a product exists in SCC.
Usage:
scc-product-version-verifier curl-verify [product name] [product version] [product arch : optional] -R [registration code]Arguments:
[product name]: The name of the product to verify.[product version]: The version of the product to verify.[product arch]: (Optional) The architecture of the product to verify. Defaults tounknown.
Flags:
-R,--regcode: The SCC Registration Code used to authenticate for the API call. Can also be set via theSCC_REGCODEenvironment variable.
Example:
scc-product-version-verifier curl-verify "SLES" "15" "x86_64" -R "your-registration-code"You can also use the SCC_REGCODE environment variable (better for CI):
export SCC_REGCODE="your-registration-code"
scc-product-version-verifier curl-verify "SLES" "15" "x86_64"export SCC_REGCODE="your-registration-code"
scc-product-version-verifier curl-verify rancher 2.12.3Warning
The SCC api is case-sensitive for product lookup meaning SLES != sles.
For SLES look up it must be upper case, for rancher lookup it must be lower case.
This repository provides reusable GitHub Actions to download and use the verifier in your CI/CD workflows.
Downloads and installs the latest version of scc-product-version-verifier.
Location: rancherlabs/scc-product-version-verifier/actions/download
Requirements:
- Works on Linux runners
- No sudo required (uses GitHub Actions provided gh cli)
Outputs:
version: The installed version of the verifierbin-path: Installation path of the verifierasset-name: Name of the downloaded tool
Example:
- name: Setup SCC Product Version Verifier
uses: rancherlabs/scc-product-version-verifier/actions/download@mainVerifies a product version against SCC staging and/or production environments.
Location: rancherlabs/scc-product-version-verifier/actions/verify
Requirements:
scc-product-version-verifiermust be installed (use the download action first)- Valid SCC registration code(s)
Inputs:
version(required): Version to verify (will be sanitized to removevprefix and prerelease suffixes)staging-code(optional): SCC staging registration codeproduction-code(optional): SCC production registration codeproduct-name(required): Product name to verify (case-sensitive)fail-on-error(optional, default:false): Fail the workflow if verification fails
Outputs:
staging-result: Staging verification result (passed/failed/skipped)production-result: Production verification result (passed/failed/skipped)
Example:
- name: Setup Verifier
uses: rancherlabs/scc-product-version-verifier/actions/download@main
- run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Verify Product Version
uses: rancherlabs/scc-product-version-verifier/actions/verify@main
with:
version: v2.12.3
staging-code: ${{ secrets.SCC_STAGING_CODE }}
production-code: ${{ secrets.SCC_PRODUCTION_CODE }}
product-name: rancher
fail-on-error: falseNotes:
- By default, verification failures do NOT fail the workflow (
fail-on-error: false). Set totrueto enforce strict verification. - Version strings are automatically sanitized (e.g.,
v2.12.3-rc1becomes2.12.3) - Product names are case-sensitive (e.g.,
SLESvssles,ranchervsRancher) - Results are written to the GitHub Actions step summary for easy viewing