Skip to content

rebase topic branch - #49

Open
madhubabutt wants to merge 54 commits into
feature/test2from
develop
Open

madhubabutt wants to merge 54 commits into
feature/test2from
develop

Conversation

@madhubabutt

Copy link
Copy Markdown

No description provided.

mselva006c and others added 8 commits June 8, 2025 03:13
OSS Release 4.7.0
Reason for change: Added support for consuming release OSS IPK packages using the architecture specified in REL_OSS_LAYER_ARCH, and for building OSS with an extended architecture defined by OSS_LAYER_ARCH.
Reason for change: Update release version for 4.8.0

Signed-off-by: mselva006c <mani_selvaraj@comcast.com>
Reason for change: Update change log for oss release 4.8.0

Signed-off-by: mselva006c <mani_selvaraj@comcast.com>
OSS Release 4.8.0
With this change REL_OSS_IPK_SERVER_PATH can be override from local.conf
for custom/local builds.
@madhubabutt
madhubabutt requested review from a team August 19, 2025 07:37
@CLAassistant

CLAassistant commented Aug 19, 2025 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ maniselva006c
✅ Alan-Ryan
❌ mselva006c


mselva006c seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

rdkcmf-jenkins and others added 19 commits September 26, 2025 11:34
Reason for the change - The meta-oss-reference-release repository has been excluded from the manifest to support the new OSS consumption model. Consequently, the OSS_LAYER_VERSION parameter previously defined in that repository is no longer available to the build.
To address this, the OSS_LAYER_VERSION parameter has been moved to the reference layer to ensure continued availability during the build process.
RDKOSS-490: Move OSS_LAYER_VERSION to reference layer
Signed-off-by: mselva006c <mani_selvaraj@comcast.com>
RDKE-893: Update Release note for 4.9.0
Signed-off-by: mselva006c <mani_selvaraj@comcast.com>
OSS Release 4.9.0
RDKCOM-5437, RDKDEV-1130: Weak assigment of REL_OSS_IPK_SERVER_PATH
Signed-off-by: mselva006c <mani_selvaraj@comcast.com>
OSS Release tag 4.10.0
Signed-off-by: mselva006c <mani_selvaraj@comcast.com>
Copilot AI review requested due to automatic review settings July 23, 2026 13:41
@github-actions

github-actions Bot commented Jul 23, 2026 •

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


7 out of 10 committers have signed the CLA.
✅ maniselva006c
✅ Alan-Ryan
✅ sbarre01
✅ Arjun-DR
✅ sktraja
✅ tharunaa
✅ vbabypublic
❌ Marcin Mikula
❌ Marcin Mikuła
❌ cksharpa
Marcin Mikula, Marcin Mikuła seem not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (2)

conf/machine/include/oss.inc:10

  • get_oss_machine(d) / get_oss_arch(d) are referenced but no longer defined anywhere in this layer, and OSS_LAYER_VERSION is referenced without being set. As-is, BitBake parsing/evaluation will fail and the generated feed paths may be incorrect. Also, the inline-python comparison in PACKAGE_EXTRA_ARCHS:append is currently comparing literal strings (e.g. '${REL_OSS_LAYER_ARCH}') rather than variable values, so it will not behave as intended.
REL_OSS_MACHINE = "${@get_oss_machine(d)}"
REL_OSS_LAYER_ARCH = "${@get_oss_arch(d)}"
PACKAGE_EXTRA_ARCHS:append = "${@ '' if '${REL_OSS_LAYER_ARCH}' == '${OSS_LAYER_ARCH}' else ' ${REL_OSS_LAYER_ARCH}'}"
REL_OSS_LAYER_EXTENSION = "${REL_OSS_LAYER_ARCH}"
REL_OSS_IPK_SERVER_PATH ?= "${RDK_ARTIFACTS_BASE_URL}/rdk-oss-rel/${OSS_LAYER_VERSION}/${REL_OSS_MACHINE}/ipks"

CHANGELOG.md:51

  • Spelling: "assigment" should be "assignment" in these changelog entries.
- RDKCOM-5437, RDKDEV-1130: Weak assigment of REL_OSS_IPK_SERVER_PATH [`#47`](https://github.com/rdkcentral/meta-oss-reference-release/pull/47)
- Update CODEOWNERS [`#73`](https://github.com/rdkcentral/meta-oss-reference-release/pull/73)
- RDKE-899: Update changelog for Rel 4.10.0 [`0191197`](https://github.com/rdkcentral/meta-oss-reference-release/commit/01911972f7a9063942ea8e180d4c05152232e397)
- Merge tag '4.9.0' into develop [`6f9d2df`](https://github.com/rdkcentral/meta-oss-reference-release/commit/6f9d2df82f9cfaf5cab200bb39b2a63c77259cec)
- RDKDEV-1130: Weak assigment of REL_OSS_IPK_SERVER_PATH [`6109869`](https://github.com/rdkcentral/meta-oss-reference-release/commit/6109869e439fc23150954e0a37d0bfc6f381ab69)

Comment thread .github/workflows/cla.yml
Comment on lines +16 to +20
CLA-Lite:
name: "Signature"
uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@v1
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }}
Copilot AI review requested due to automatic review settings July 24, 2026 13:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (9)

conf/machine/include/oss.inc:7

  • REL_OSS_MACHINE/REL_OSS_LAYER_ARCH are computed via get_oss_machine(d) / get_oss_arch(d), but those helper functions are no longer defined anywhere in this repository (verified via search). As-is, parsing this include will fail unless another required metadata file defines them; please either reintroduce the helpers here or explicitly require the file that provides them so the dependency is clear and parse order is guaranteed.
REL_OSS_MACHINE = "${@get_oss_machine(d)}"
REL_OSS_LAYER_ARCH = "${@get_oss_arch(d)}"

conf/machine/include/oss.inc:8

  • This ${@...} comparison is currently comparing the literal strings '${REL_OSS_LAYER_ARCH}' and '${OSS_LAYER_ARCH}', not their values, so it will never behave as intended. Use d.getVar() to compare the expanded variable values and only append when needed.
PACKAGE_EXTRA_ARCHS:append = "${@ '' if '${REL_OSS_LAYER_ARCH}' == '${OSS_LAYER_ARCH}' else ' ${REL_OSS_LAYER_ARCH}'}"

conf/machine/include/oss.inc:10

  • REL_OSS_IPK_SERVER_PATH (and the CVE feed path below) expand ${OSS_LAYER_VERSION}, but OSS_LAYER_VERSION is not defined anywhere in this repository anymore (verified via search). If this is meant to be provided externally, consider documenting/validating it here; otherwise, add a default or set it in this layer to avoid generating invalid feed URLs.
REL_OSS_IPK_SERVER_PATH ?= "${RDK_ARTIFACTS_BASE_URL}/rdk-oss-rel/${OSS_LAYER_VERSION}/${REL_OSS_MACHINE}/ipks"

conf/machine/include/oss.inc:23

  • If REL_OSS_LAYER_ARCH is unexpected/missing, get_cve_checksum() currently returns None, which would produce an invalid ;sha256sum= (or None) in CVE_LAYER_FEED_PATH. Failing fast with a clear error makes misconfiguration easier to diagnose.
def get_cve_checksum (d):
    arch = d.getVar('REL_OSS_LAYER_ARCH') or ''
    mapping = {
        "rdk-arm7a-oss":  "fe379211bf571831cb3e4becbc884f0338b2f05b2124dfdb91afb129ec8db478",
        "rdk-arm7ve-oss": "68e724e5231fc0dce52037d3cecf1154415f95d4bac223606ef4d1358254df72",
        "rdk-arm64-oss":  "0db073343ed9c60e748f0534ddb427a887bdffafacc1077739f1dda86362b583",
    }
    return  mapping.get(arch)

CHANGELOG.md:12

  • This release entry is missing the date line (> ...) that the rest of the changelog uses (e.g., 4.12.2 and below). Adding the release date keeps the changelog consistent and easier to scan.
#### [4.13.0](https://github.com/rdkcentral/meta-oss-reference-release/compare/4.12.2...4.13.0)

- RDKE-1040: Update release notes for 4.13.0 [`#88`](https://github.com/rdkcentral/meta-oss-reference-release/pull/88)
- Update CODEOWNERS [`#87`](https://github.com/rdkcentral/meta-oss-reference-release/pull/87)
- Merge tag '4.12.0' into develop [`0fa9124`](https://github.com/rdkcentral/meta-oss-reference-release/commit/0fa912471d4bb121e2842a2c38fe0731146d99e9)

CHANGELOG.md:51

  • Typo: "assigment" should be "assignment" in these two entries.
- RDKCOM-5437, RDKDEV-1130: Weak assigment of REL_OSS_IPK_SERVER_PATH [`#47`](https://github.com/rdkcentral/meta-oss-reference-release/pull/47)
- Update CODEOWNERS [`#73`](https://github.com/rdkcentral/meta-oss-reference-release/pull/73)
- RDKE-899: Update changelog for Rel 4.10.0 [`0191197`](https://github.com/rdkcentral/meta-oss-reference-release/commit/01911972f7a9063942ea8e180d4c05152232e397)
- Merge tag '4.9.0' into develop [`6f9d2df`](https://github.com/rdkcentral/meta-oss-reference-release/commit/6f9d2df82f9cfaf5cab200bb39b2a63c77259cec)
- RDKDEV-1130: Weak assigment of REL_OSS_IPK_SERVER_PATH [`6109869`](https://github.com/rdkcentral/meta-oss-reference-release/commit/6109869e439fc23150954e0a37d0bfc6f381ab69)

CHANGELOG.md:122

  • Typo: "auxilary" should be "auxiliary".
- RDKEOSS-3 fix meta-rdk-auxilary and meta-rdk-oss-reference versions [`0485e7e`](https://github.com/rdkcentral/meta-oss-reference-release/commit/0485e7e824323179570e669cd439a5fe98774670)

.github/workflows/cla.yml:7

  • This workflow runs on pull_request_target and is granted broad write permissions (including actions: write). Consider reducing permissions to the minimum required by the reusable CLA workflow to limit blast radius if the workflow is ever abused or misconfigured.
permissions:
  contents: read
  pull-requests: write
  actions: write
  statuses: write

.github/workflows/cla.yml:19

  • The reusable workflow is referenced by a mutable tag (@v1). For supply-chain safety, prefer pinning reusable workflows to an immutable commit SHA (or a protected, immutable tag if your org enforces it).
  CLA-Lite:
    name: "Signature"
    uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@v1
    secrets:

Copilot AI review requested due to automatic review settings July 24, 2026 13:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (4)

conf/machine/include/oss.inc:10

  • get_oss_machine() / get_oss_arch() are referenced but are no longer defined anywhere in this layer (repo-wide search shows no definitions). This will break BitBake parsing when REL_OSS_MACHINE / REL_OSS_LAYER_ARCH expand unless another included file defines them. If these functions were not intentionally relocated, reintroduce them here (and default OSS_LAYER_ARCH so the comparison in PACKAGE_EXTRA_ARCHS has a value).
REL_OSS_MACHINE = "${@get_oss_machine(d)}"
REL_OSS_LAYER_ARCH = "${@get_oss_arch(d)}"
PACKAGE_EXTRA_ARCHS:append = "${@ '' if '${REL_OSS_LAYER_ARCH}' == '${OSS_LAYER_ARCH}' else ' ${REL_OSS_LAYER_ARCH}'}"
REL_OSS_LAYER_EXTENSION = "${REL_OSS_LAYER_ARCH}"
REL_OSS_IPK_SERVER_PATH ?= "${RDK_ARTIFACTS_BASE_URL}/rdk-oss-rel/${OSS_LAYER_VERSION}/${REL_OSS_MACHINE}/ipks"

conf/machine/include/oss.inc:23

  • get_cve_checksum() returns None for unknown/empty REL_OSS_LAYER_ARCH, which would result in an invalid sha256sum=None feed entry. Failing fast makes misconfiguration easier to detect and avoids publishing/consuming a bad feed URL.
def get_cve_checksum (d):
    arch = d.getVar('REL_OSS_LAYER_ARCH') or ''
    mapping = {
        "rdk-arm7a-oss":  "fe379211bf571831cb3e4becbc884f0338b2f05b2124dfdb91afb129ec8db478",
        "rdk-arm7ve-oss": "68e724e5231fc0dce52037d3cecf1154415f95d4bac223606ef4d1358254df72",
        "rdk-arm64-oss":  "0db073343ed9c60e748f0534ddb427a887bdffafacc1077739f1dda86362b583",
    }
    return  mapping.get(arch)

CHANGELOG.md:12

  • The 4.14.0 changelog entry is missing the release date line (> ...) that is present for adjacent releases; the file header also states dates are displayed in UTC. Add the date for consistency and to avoid ambiguity.
#### [4.14.0](https://github.com/rdkcentral/meta-oss-reference-release/compare/4.13.0...4.14.0)

- Update OSS stack layer with new meta layer [`#93`](https://github.com/rdkcentral/meta-oss-reference-release/pull/93)
- RDKOSS-1063 : OSS Release 4.14.0 [`#91`](https://github.com/rdkcentral/meta-oss-reference-release/pull/91)
- Merge tag '4.13.0' into develop [`5d4365c`](https://github.com/rdkcentral/meta-oss-reference-release/commit/5d4365c6fbcc0ee33112d3b6d5f97498b67d0d4c)

.github/workflows/cla.yml:20

  • The workflow calls a reusable workflow using @v1, which is typically a mutable reference. To reduce supply-chain risk for pull_request_target workflows (especially when using a PAT secret), pin uses: to an immutable commit SHA (or an immutable, semver-specific tag if your org guarantees tag immutability).
  CLA-Lite:
    name: "Signature"
    uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@v1
    secrets:
      PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }}

* RDKOSS-1038 : OSS Audit Generation

- Create audit report containing OSS repositories's bb/bbappend.
- Captured .conf, .inc, .patch, .service, .sh, SRC_URI info
- PR blocked to merge if outside authorized repos
-  Automated job to create monthly OSS audit report

* RDKOSS-1038 : OSS Audit Report

- Scanned OSS repositories list
- OSS Audit Report

* RDKOSS-1038 : Audit Generation

Addressed Copilot review comments
- Check out the trusted base revision for this validation
- Removed --continue-on-error flag
- Modified regex as suggested

* RDKOSS-1038 : Minor command correction

---------

Co-authored-by: Chandrakant Sharpa <csharp473@apac.comcast.com>
Copilot AI balanced review requested due to automatic review settings October 12, 2026 13:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

git add reports/oss-audit/oss-audit.md reports/oss-audit/oss-audit.json
Comment on lines +38 to +46
parser.add_argument(
"--repository",
default=os.environ.get("GITHUB_HEAD_REPO_FULL_NAME")
or os.environ.get("GITHUB_REPOSITORY"),
help=(
"Repository to validate in owner/repository form. Defaults to "
"GITHUB_HEAD_REPO_FULL_NAME or GITHUB_REPOSITORY."
),
)
Comment thread scripts/oss_audit.py
Comment on lines +226 to +230
if variable.startswith(name + ":"):
return name

if variable.startswith(name + "_"):
return name
Copilot AI balanced review requested due to automatic review settings October 22, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The authorization guard is bypassable, cleanup can delete unrelated files, and audit parsing and failure handling need correction.

7 open issues
3 previously missed issues

In code that hasn't changed since last review

Medium severity Upload partial audit reports when scanning fails

.github/​workflows/​oss-audit.yml:42

When a repository cannot be cloned or scanned, oss_audit.py writes the partial reports and failure details, then exits nonzero. This upload step's implicit success condition skips the artifacts, so those reports are lost when the runner is discarded. Upload them on failed runs as well, while leaving generation and the overall job failed and keeping the commit step success-only.

Medium severity Avoid confusing independent BitBake variables with LICENSE

scripts/​oss_audit.py:230

The underscore-prefix match treats independent BitBake variables such as LICENSE_FLAGS and LICENSE_PATH as LICENSE. For example, LICENSE = "LGPL-2.1-only" followed by LICENSE_FLAGS = "commercial" produces a reported license of commercial, replacing the actual license in both reports. Distinguish independent variables from supported legacy overrides and modifiers before normalizing metadata names.

Low severity Run verification workflow from trusted base with pull_request_target

.github/​workflows/​oss-pr-guard.yml:4

A pull_request run uses the workflow definition from the PR's merge ref. An unauthorized fork can therefore replace verification with a successful command while preserving the job's check name. Checking out the base SHA protects the policy and script, but not the workflow that invokes them. Use pull_request_target so the workflow also comes from the trusted base, and retain the base-only checkout without executing head-branch code.

Review effort: Balanced

Comment thread scripts/oss_audit.py
Comment on lines +1183 to +1187
if not args.keep_clones:
shutil.rmtree(
work_dir,
ignore_errors=True,
)
* Update README.md

* Update README.md
Copilot AI balanced review requested due to automatic review settings October 22, 2026 14:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The authorization guard is bypassable, and audit metadata handling, failure-report retention, and CVE checksum coverage need correction.

8 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Upload diagnostic artifacts after audit failures

.github/​workflows/​oss-audit.yml:41

When any repository cannot be cloned or scanned, oss_audit.py writes both reports with failure details and then exits unsuccessfully. The default success condition skips this upload step, so those diagnostic reports disappear with the runner. Run artifact upload after failures while leaving the commit step success-only.

Medium severity Exclude independent license variables from override merging

scripts/​oss_audit.py:230

The underscore-prefix check treats independent BitBake variables such as LICENSE_FLAGS as license overrides. For example, LICENSE = "MIT" followed by LICENSE_FLAGS = "commercial" causes the scanner to report commercial as the license. Distinguish supported legacy override/modifier suffixes from independent variables such as LICENSE_FLAGS and LICENSE_FLAGS_ACCEPTED before merging metadata, so policy flags cannot overwrite the audited license.

Review effort: Balanced

name: OSS Repository Authorization Guard

on:
pull_request:
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.