Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
4b57564
Initial CodeQL commit
noelle-iterable Sep 24, 2025
bfbe3b8
changing swift build mode to manual
randall-wyatt Sep 24, 2025
387fae6
working on the artifact for ios
randall-wyatt Sep 25, 2025
07dd54a
working on the artifact for ios
randall-wyatt Sep 25, 2025
c778ac3
Working on the artifact for iOS v2
noelle-iterable Sep 26, 2025
7824467
Checking to see if the failure is due to a poorly configured turbo.js…
noelle-iterable Sep 26, 2025
683fa7a
Fixed yml config error in hierarchy
noelle-iterable Sep 26, 2025
fb7391f
Setting timeout for build
noelle-iterable Sep 26, 2025
bf2ec60
Debugging cache settings
noelle-iterable Sep 26, 2025
f92a213
Looks like it was cancelled before it could complete, extending timeout
noelle-iterable Sep 26, 2025
560b97f
ignoring kotlin files that will not build in this environment
noelle-iterable Sep 26, 2025
c7a46b0
Using the path-ignore doesn't work for compiled langauges. isolating …
noelle-iterable Sep 26, 2025
f38d0a3
re-declaring permissions and strategy
noelle-iterable Sep 26, 2025
c6d9f53
Changing how CocoaPod dependencies are called
noelle-iterable Sep 26, 2025
a628773
filtering out the autobuild java and kt results
noelle-iterable Sep 26, 2025
c656ca9
Seems like there is a number of files that cannot be found and the ca…
noelle-iterable Sep 26, 2025
fbeaeee
Testing instal of react native sdk inline with the ios example build
noelle-iterable Sep 26, 2025
e71e649
Testing instal of react native sdk inline with the ios example build,…
noelle-iterable Sep 26, 2025
1a2bbd7
Testing instal of react native sdk inline with the ios example build,…
noelle-iterable Sep 26, 2025
f3a251c
Testing another variant of build for iOS
noelle-iterable Sep 26, 2025
65fbfe7
using the correct code path
noelle-iterable Sep 26, 2025
a7a0d11
Code path not found, going back to default path
noelle-iterable Sep 26, 2025
3e1647f
Resolving peer dependency issue
noelle-iterable Sep 26, 2025
7119966
Changing to manual build
noelle-iterable Sep 26, 2025
619a886
Changing to manual build and updating build steps to include xcode bu…
noelle-iterable Sep 26, 2025
d622f24
Fixing some yml issues
noelle-iterable Sep 26, 2025
7b25738
Fixing some yml more yml issues
noelle-iterable Sep 26, 2025
cdca923
Trying again with manual build steps
noelle-iterable Sep 26, 2025
62914f6
Using project instead of workspace to build manually
noelle-iterable Sep 26, 2025
7298ff8
output project scheme before attempting to build
noelle-iterable Sep 26, 2025
1c3a65e
yaml formatting issues
noelle-iterable Sep 26, 2025
3f8edca
yaml formatting issues again
noelle-iterable Sep 26, 2025
219fc64
trying to build with another scheme
noelle-iterable Sep 26, 2025
2d98553
Saw an error about not being able to access the schema/project if som…
noelle-iterable Sep 26, 2025
545f90a
I hate yaml
noelle-iterable Sep 26, 2025
b09aa88
I hate yaml, wrong order of declaration for setting up xcode
noelle-iterable Sep 26, 2025
08d1c2d
list schemes before trying to build
noelle-iterable Sep 26, 2025
f25ea2b
changing the scheme again
noelle-iterable Sep 26, 2025
be12b84
trying to get it to list the available info for xcode build
noelle-iterable Sep 26, 2025
896e8e8
changed from workspace to project
noelle-iterable Sep 26, 2025
2fc5562
removing comments from command line operations
noelle-iterable Sep 26, 2025
74a37e9
Fixing typo in the file name for the project
noelle-iterable Sep 26, 2025
3d8013f
trying to fix the build output.
noelle-iterable Sep 26, 2025
6c8129a
trying to fix build. removing some of the options.
noelle-iterable Sep 26, 2025
d4f64ec
trying to fix build. had some conflicting settings
noelle-iterable Sep 26, 2025
d437686
trying to fix build. no simulator.
noelle-iterable Sep 26, 2025
1d60ad6
Maybe some kind of conflict between macos-15 and latest?
noelle-iterable Sep 26, 2025
047b372
Thank you for being so easy to debug.
noelle-iterable Sep 26, 2025
5675776
tweaking the iphone dev target version.
noelle-iterable Sep 26, 2025
50fd797
trying to verify that the architechture isn't messing with the build
noelle-iterable Sep 27, 2025
14b8d18
trying to do a clean before the build.
noelle-iterable Sep 27, 2025
8bb4a39
trying to do a clean before the build without using bash to run the c…
noelle-iterable Sep 27, 2025
d59d791
changing the sdk to iphoneos13.2
noelle-iterable Sep 27, 2025
6029f2f
changing the sdk back to just iphoneos
noelle-iterable Sep 27, 2025
21167cd
fiddling with the build config again. removing a few things.
noelle-iterable Sep 27, 2025
5f021c7
i still hate yml
noelle-iterable Sep 27, 2025
4d67a2b
modified some build settings and set continue on error to true
noelle-iterable Sep 27, 2025
61d9fbe
moving manual build steps to under the analyze with codeql steps.
noelle-iterable Sep 27, 2025
e5cfb61
moving manual build steps to under the analyze with codeql steps with…
noelle-iterable Sep 27, 2025
730d421
putting the build step between init and analyze
noelle-iterable Sep 27, 2025
99372eb
swift version mismatch?
noelle-iterable Sep 27, 2025
b9fcf37
swift version mismatch 6.0 => 5.9
noelle-iterable Sep 27, 2025
58c7b0c
reactnativedependencies build fail fix
noelle-iterable Sep 27, 2025
15036a8
react native binary doesn't get saved.
noelle-iterable Sep 27, 2025
04bad05
switching back to manual build inside the init state.
noelle-iterable Sep 27, 2025
50d2b44
switching back to manual build inside the init state and commenting o…
noelle-iterable Sep 27, 2025
991e9a3
refining manual steps for building the project
noelle-iterable Sep 27, 2025
98de609
I can't call codeql inside the run script.
noelle-iterable Sep 27, 2025
606e043
building manual inside of the init did not work at all and codeql fai…
noelle-iterable Sep 27, 2025
47567b0
turned code signing back off.
noelle-iterable Sep 27, 2025
13fe939
still debugging...
noelle-iterable Sep 27, 2025
5e93de8
does workspace also fail?
noelle-iterable Sep 27, 2025
e0526e4
changing to a build mode that seems to have worked at some point
noelle-iterable Sep 27, 2025
65c1241
example app installs, but has no code, so fail.
noelle-iterable Sep 27, 2025
f19f3d7
breaking clean into it's own step didn't work
noelle-iterable Sep 27, 2025
70ba8b9
use modular headers?
noelle-iterable Sep 27, 2025
b711179
use modular headers in podfile
noelle-iterable Sep 27, 2025
7048257
use modular headers in podfile, wrong location.
noelle-iterable Sep 27, 2025
bdce427
hermes enabled in podfile
noelle-iterable Sep 27, 2025
33f76a7
added @react-native-community/cli to build example for ios
noelle-iterable Sep 27, 2025
36e97ad
trying to use the build after codeql init
noelle-iterable Sep 27, 2025
4fa2162
running code build separately.
noelle-iterable Sep 28, 2025
db2e93c
fixing error with RNIterableAPI access
noelle-iterable Sep 28, 2025
4cd8afc
Enabling hermes and fabric
noelle-iterable Sep 28, 2025
8882ca9
Enabling hermes and fabric changed config
noelle-iterable Sep 28, 2025
3e718d9
Enabling hermes and fabric changed config, a different podfile config…
noelle-iterable Sep 28, 2025
7369caf
Enabling hermes and fabric changed config, a different podfile config…
noelle-iterable Sep 28, 2025
10bb2f3
seeing if the build works from the project perspective
noelle-iterable Sep 28, 2025
6823001
changing back to workspace.
noelle-iterable Sep 28, 2025
2d8550a
attempting to use the command line from packaage.json
noelle-iterable Sep 28, 2025
fab7e5a
trying to use react to build-ios
noelle-iterable Sep 28, 2025
6388dad
trying to use react to build-ios, fixing typo
noelle-iterable Sep 28, 2025
3e7ad7a
heckin' heck. community cli replaced the old one. need to fix this gl…
noelle-iterable Sep 28, 2025
33049ee
this is borked to all hell
noelle-iterable Sep 28, 2025
3bd2226
looks like the command from the package.json doesn't work because of …
noelle-iterable Sep 28, 2025
417c470
looks like the command from the package.json doesn't work because of …
noelle-iterable Sep 28, 2025
74a4a41
switching back to manual build
noelle-iterable Sep 29, 2025
60299d0
switching back to manual build, and removing the separate step.
noelle-iterable Sep 29, 2025
2c70e28
so close...
noelle-iterable Sep 29, 2025
078e6c7
so close... pulling the sarif-results
noelle-iterable Sep 29, 2025
b9f8e70
checking to see if the same works targeting the rniterableapi
noelle-iterable Sep 29, 2025
d211672
This builds and analyzes the Example app, which includes the RNIterab…
noelle-iterable Sep 29, 2025
e2b91c8
This builds and analyzes the Example app, which includes the RNIterab…
noelle-iterable Sep 29, 2025
9c5d58a
This builds and analyzes the Example app, which includes the RNIterab…
noelle-iterable Sep 29, 2025
17108a7
trying to turn flipper off without modify the Podfile
noelle-iterable Sep 30, 2025
d29cff6
Modifying codeql.yml to fix build issue
noelle-iterable Sep 30, 2025
f4d1d25
Modifying codeql.yml to fix build issue, wrong path
noelle-iterable Sep 30, 2025
32e3211
Modifying codeql.yml to fix build issue, wrong path, typo.
noelle-iterable Sep 30, 2025
5d49da8
Modifying codeql.yml to fix build issue, pod install broke.
noelle-iterable Sep 30, 2025
c98b68f
android example build steps
noelle-iterable Oct 6, 2025
40a393a
android example build with yarn
noelle-iterable Oct 6, 2025
2c9f6ec
android example build with yarn, stupid typo
noelle-iterable Oct 6, 2025
499299d
android is choaking on a typescript, new ios instructions
noelle-iterable Oct 6, 2025
531b062
android is choaking on a typescript, new ios instructions changed fro…
noelle-iterable Oct 6, 2025
20fe2a8
the steps didn't seem to work out, going back to loren's steps
noelle-iterable Oct 6, 2025
6a2c598
complained about bundle exec by itself
noelle-iterable Oct 6, 2025
a356b07
complained about a depenency, tryingto just do a pod install
noelle-iterable Oct 6, 2025
4c44703
did not build the example app. made changes to the android script.
noelle-iterable Oct 6, 2025
89a2900
android is working now, ios seems to stall out building
noelle-iterable Oct 6, 2025
506265e
out of date dependency, doesn't perform the full install for ios
noelle-iterable Oct 6, 2025
eea36d6
out of date dependency, doesn't perform the full install for ios v2
noelle-iterable Oct 6, 2025
1d9c1f5
I think this is a final.
noelle-iterable Oct 6, 2025
961f164
Incorporating comments from lposen
noelle-iterable Oct 7, 2025
360a41b
Changing the build command for ios, changed the gradle command back t…
noelle-iterable Oct 7, 2025
56ecc9d
Build for Android succeeds on clean, doublechecking build. ios build …
noelle-iterable Oct 7, 2025
48d24e9
Cleaned up the build steps so that the codeql database is populated a…
noelle-iterable Oct 7, 2025
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
214 changes: 214 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Advanced"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
Analyze_Ruby_JSandTS:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: javascript-typescript
build-mode: none
- language: ruby
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: ${{ matrix.language && 'security-extended, security-and-quality' }}

- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

Build_Analyze_Android_Example:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
env:
TURBO_CACHE_DIR: .turbo/android
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: java-kotlin
build-mode: manual

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

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

- name: Setup
uses: ./.github/actions/setup

- name: Install JDK
if: env.turbo_cache_hit != 1
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'

- name: Finalize Android SDK
if: env.turbo_cache_hit !=1
run: |
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: ${{ matrix.language && 'security-extended, security-and-quality' }}

- if: matrix.build-mode == 'manual'
shell: bash
run: |
cd example
yarn install
cd android
./gradlew clean

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

Build_Analyze_iOS_Example:
name: Analyze (${{ matrix.language }})
timeout-minutes: 120
env:
TURBO_CACHE_DIR: .turbo/ios
TURBO_TOKEN: ${{ secrets. TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets. TURBO_TEAM }}

runs-on: ${{ (matrix.language == 'swift' && 'macos-15') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: swift
build-mode: manual

steps:
- name: Checkout react-native-sdk
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: ${{ matrix.language && 'security-extended, security-and-quality' }}

- if: matrix.build-mode == 'manual'
shell: bash
run: |
cd example
yarn install
cd ios
bundle install
bundle exec pod install
xcodebuild -workspace ReactNativeSdkExample.xcworkspace -scheme ReactNativeSdkExample -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 16' build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"!example/ios/build",
"!example/ios/Pods"
],
"outputs": []
"outputs": [".turbo/cache"]
}
}
}
Loading