Skip to content

refactor: extract provenance steps to scripts#165

Open
keerthi-go wants to merge 3 commits into
mainfrom
refactor/provenance-scripts
Open

refactor: extract provenance steps to scripts#165
keerthi-go wants to merge 3 commits into
mainfrom
refactor/provenance-scripts

Conversation

@keerthi-go
Copy link
Copy Markdown
Contributor

@keerthi-go keerthi-go commented May 28, 2026

Moves two large inline shell blocks out of qcom-release-reusable-workflow.yml into scripts:

  • scripts/create-provenance.sh — generates build/provenance.json (73 lines → 1)
  • scripts/push-provenance.sh — pushes provenance to qcom-distro-artifacts (43 lines → 1)

No behaviour change. Validated via pkg-example test run.

Move the 'Create provenance file' inline shell block
(73 lines) into scripts/create-provenance.sh.

The workflow step is now a single line:
  run: ./qcom-build-utils/scripts/create-provenance.sh

All env vars (DISTRO_CODENAME, DEBIAN_BRANCH,
UPSTREAM_REPO, PKG_VERSION, PKG_REPO) are unchanged.
No behaviour change.

Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
Move the 'Push provenance to qcom-distro-artifacts'
inline shell block (43 lines) into
scripts/push-provenance.sh.

The workflow step is now a single line:
  run: ./qcom-build-utils/scripts/push-provenance.sh

All env vars (GH_PAT, SUITE, BOT_NAME, BOT_EMAIL)
are unchanged. No behaviour change.

Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
Add SPDX-License-Identifier: BSD-3-Clause-Clear header
to scripts/create-provenance.sh and scripts/push-provenance.sh
as required by the copyright check.

Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
@keerthi-go keerthi-go requested a review from abickett May 28, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant