Skip to content

feat: add reusable dsx-ci-go and dsx-ci-helm workflows#35

Closed
huaweic-nv wants to merge 2 commits into
mainfrom
feat/reusable-workflows
Closed

feat: add reusable dsx-ci-go and dsx-ci-helm workflows#35
huaweic-nv wants to merge 2 commits into
mainfrom
feat/reusable-workflows

Conversation

@huaweic-nv

Copy link
Copy Markdown
Contributor

Summary

Two reusable workflows that DSX repos call with workflow_call:

Workflow Purpose
dsx-ci-go.yml Full Go CI: commitlint, license-headers, go-lint, go-test, docker-build, codeql, trufflehog, helm-validate, slack
dsx-ci-helm.yml Helm CI: commitlint, license-headers, helm-validate, trufflehog, slack

Both accept an actions-ref input so callers pin all internal action refs to the same version — no @main drift.

Caller usage

# auth-callout ci.yml — entire CI in 12 lines
jobs:
  ci:
    uses: NVIDIA/dsx-github-actions/.github/workflows/dsx-ci-go.yml@v1
    with:
      go-version: "1.25.5"
      go-flags: "-mod=vendor"
      docker-image: dsx-exchange-auth-callout
      dockerfile: build/package/Dockerfile
      slack-channel-id: C09VC8R4E92
      actions-ref: v1
    secrets:
      SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

Follow-up to #34 which added the composite actions these workflows use.

Jira: CDEVS-2228

Test plan

  • dsx-ci-go.yml called from dsx-exchange-auth-callout
  • dsx-ci-helm.yml called from dsx-exchange-deploy

🤖 Generated with Claude Code

Two reusable workflows that DSX repos call with workflow_call:

dsx-ci-go.yml: Full Go CI pipeline
  commitlint, license-headers, go-lint, go-test, docker-build,
  codeql-scan, trufflehog-scan, helm-validate, slack-notify
  All jobs configurable via inputs.

dsx-ci-helm.yml: Helm chart CI pipeline
  commitlint, license-headers, helm-validate, trufflehog-scan,
  slack-notify

Both accept an actions-ref input so callers can pin the version:
  uses: NVIDIA/dsx-github-actions/.github/workflows/dsx-ci-go.yml@v1
  with:
    actions-ref: v1  # internal actions use same ref

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Hua-Wei Chen <huaweic@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Apr 8, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Explain why actions-ref input must match the caller's @ref — GitHub
Actions does not expose the called ref to reusable workflows, and
relative paths (./) resolve to the caller's repo context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Hua-Wei Chen <huaweic@nvidia.com>
@huaweic-nv huaweic-nv closed this Apr 8, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 8, 2026
@huaweic-nv huaweic-nv deleted the feat/reusable-workflows branch April 8, 2026 07:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant