Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
a7d11ac
RDKB-66116 : update dbus dependency branch to 1.14.10-3-1deepin3
pavankumar464 Jul 20, 2026
90f1181
switch dbus dependency branch to dbus-1.14
pavankumar464 Jul 20, 2026
e15cad9
Update component_config.json
pavankumar464 Jul 20, 2026
ab52f90
use freedesktop dbus repo and normalize branch key formatting
pavankumar464 Jul 21, 2026
433e70c
add repository-specific CodeQL workflow
pavankumar464 Jul 21, 2026
02143c4
revert: remove repository-specific CodeQL workflow
pavankumar464 Jul 21, 2026
e10d8fd
add conditional CodeQL scans for C/C++, Python, and JavaScript
pavankumar464 Jul 21, 2026
87ac22b
skip native component build when PR does not touch source paths
pavankumar464 Jul 21, 2026
777286f
Apply suggestions from code review
pavankumar464 Jul 21, 2026
09c34f7
ci: update remaining actions/checkout to v4 in native-build workflow
pavankumar464 Jul 21, 2026
01648a1
Apply suggestions from code review
pavankumar464 Jul 21, 2026
fb92be4
ci: scope security-events write permission to CodeQL jobs only
pavankumar464 Jul 21, 2026
8fc6024
ci: split native build by event and run path detection only for PRs
pavankumar464 Jul 21, 2026
f30aeff
Apply suggestions from code review
pavankumar464 Jul 21, 2026
df71688
Merge branch 'develop' into bug/RDKB-66116
pavankumar464 Aug 11, 2026
6cbea0b
skip fragment-only JS files in workflow and analysis
pavankumar464 Aug 11, 2026
000ca09
align JS change filter with CodeQL scan paths
pavankumar464 Aug 11, 2026
6eef5d8
ci(codeql): fix false-positive JS path filter matches
pavankumar464 Aug 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 190 additions & 2 deletions .github/workflows/native-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,49 @@ on:
pull_request:
branches: [ main, 'sprint/**', 'release/**', topic/RDK*, develop ]

permissions:
actions: read
contents: read
pull-requests: read

Comment thread
pavankumar464 marked this conversation as resolved.
jobs:
build-jst-on-push:
name: Build javascript-templates component on push
if: github.event_name == 'push'
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: native build
run: |
# Trust the workspace
git config --global --add safe.directory '*'
# Pull the latest changes for the native build system
git submodule update --init --recursive --remote
# Build and install dependencies
chmod +x build_tools_workflows/cov_docker_script/setup_dependencies.sh
./build_tools_workflows/cov_docker_script/setup_dependencies.sh ./cov_docker_script/component_config.json
# Build component
chmod +x build_tools_workflows/cov_docker_script/build_native.sh
./build_tools_workflows/cov_docker_script/build_native.sh ./cov_docker_script/component_config.json "$(pwd)"
env:
GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }}

build-jst-on-pr:
name: Build javascript-templates component in github rdkcentral
name: Build javascript-templates component on PR
needs: detect-source-changes
if: github.event_name == 'pull_request' && needs.detect-source-changes.outputs.has_component == 'true'
runs-on: ubuntu-latest
Comment thread
pavankumar464 marked this conversation as resolved.
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: native build
run: |
Expand All @@ -31,3 +64,158 @@ jobs:
./build_tools_workflows/cov_docker_script/build_native.sh ./cov_docker_script/component_config.json "$(pwd)"
env:
GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }}

detect-source-changes:
name: Detect source path changes for CodeQL
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
Comment thread
pavankumar464 marked this conversation as resolved.
outputs:
has_component: ${{ steps.filter.outputs.component }}
has_cpp: ${{ steps.filter.outputs.cpp }}
has_python: ${{ steps.filter.outputs.python }}
has_js: ${{ steps.filter.outputs.javascript }}

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect changed source paths
id: filter
uses: dorny/paths-filter@v4
with:
predicate-quantifier: some-with-excludes
filters: |
component:
- 'source/**/*'
Comment thread
pavankumar464 marked this conversation as resolved.
cpp:
- 'source/**/*.c'
- 'source/**/*.h'
- 'source/**/*.cpp'
- 'tools/**/*.c'
- 'tools/**/*.h'
- 'tools/**/*.cpp'
- 'tests/**/*.c'
- 'tests/**/*.h'
- 'tests/**/*.cpp'
python:
- 'build_tools_workflows/**/*.py'
- 'cov_docker_script/**/*.py'
- 'tools/**/*.py'
- 'tests/**/*.py'
javascript:
- 'source/**/*.js'
- 'source/**/*.ts'
- 'jsts/**/*.js'
- 'jsts/**/*.ts'
- 'tests/**/*.js'
- 'tests/**/*.ts'
- '!jsts/jst_prefix.js'
- '!jsts/jst_suffix.js'
- '!tests/parser/jst_prefix.js'
- '!tests/parser/jst_suffix.js'
- '!tests/parser/**/*.jst.parsed'

codeql-c-cpp:
name: CodeQL (C/C++)
needs: detect-source-changes
if: github.event_name == 'pull_request' && needs.detect-source-changes.outputs.has_cpp == 'true'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Initialize CodeQL (C/C++)
uses: github/codeql-action/init@v4
with:
languages: c-cpp
build-mode: manual

- name: Build component for CodeQL
run: |
git config --global --add safe.directory '*'
git submodule update --init --recursive
chmod +x build_tools_workflows/cov_docker_script/setup_dependencies.sh
./build_tools_workflows/cov_docker_script/setup_dependencies.sh ./cov_docker_script/component_config.json
chmod +x build_tools_workflows/cov_docker_script/build_native.sh
./build_tools_workflows/cov_docker_script/build_native.sh ./cov_docker_script/component_config.json "$(pwd)"
env:
GITHUB_TOKEN: ${{ secrets.RDKCM_RDKE }}

- name: Analyze C/C++
uses: github/codeql-action/analyze@v4
with:
category: '/language:c-cpp'

codeql-python:
name: CodeQL (Python)
needs: detect-source-changes
if: github.event_name == 'pull_request' && needs.detect-source-changes.outputs.has_python == 'true'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Initialize CodeQL (Python)
uses: github/codeql-action/init@v4
with:
languages: python
build-mode: none
config: |
paths:
- build_tools_workflows
- cov_docker_script
- tools
- tests

- name: Analyze Python
uses: github/codeql-action/analyze@v4
with:
category: '/language:python'

codeql-javascript:
name: CodeQL (JavaScript)
needs: detect-source-changes
if: github.event_name == 'pull_request' && needs.detect-source-changes.outputs.has_js == 'true'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Initialize CodeQL (JavaScript)
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
build-mode: none
config: |
paths:
- source
- jsts
- tests
paths-ignore:
- jsts/jst_prefix.js
- jsts/jst_suffix.js
- tests/parser/jst_prefix.js
- tests/parser/jst_suffix.js
- tests/parser/**/*.jst.parsed
- name: Analyze JavaScript
uses: github/codeql-action/analyze@v4
with:
category: '/language:javascript-typescript'
4 changes: 2 additions & 2 deletions cov_docker_script/component_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
},
{
"name": "dbus",
"repo": "https://github.com/deepin-community/dbus.git",
"branch" : "master",
"repo": "https://gitlab.freedesktop.org/dbus/dbus.git",
"branch": "dbus-1.14",
"build": {
"type": "cmake",
"build_dir": "build",
Expand Down
Loading