Skip to content

Y333/apex support #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Y333/apex support #274

wants to merge 8 commits into from

Conversation

yogh333
Copy link
Contributor

@yogh333 yogh333 commented Jul 24, 2025

No description provided.

Comment on lines 11 to 29
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Checkout C SDK Build Parameters Extractor
uses: actions/checkout@v4
with:
repository: LedgerHQ/csdk_build_params_x
path: c_sdk_build_params_x
- name: Build C SDK Build Parameters Extractor
run: |
cd c_sdk_build_params_x
cargo build --release
- name: Upload C SDK Build Parameters Extractor
uses: actions/upload-artifact@v4
with:
name: c_sdk_build_params_extractor
path: c_sdk_build_params_x/target/release/cbpx
check_csdk_build_parameters:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 2 days ago

To fix the issue, we will add a permissions block at the root level of the workflow file. This block will apply to all jobs in the workflow unless overridden by job-specific permissions blocks. Based on the workflow's operations, the minimal required permissions are likely contents: read, as the workflow primarily checks out repositories and downloads/upload artifacts. No write permissions are necessary.


Suggested changeset 1
.github/workflows/check_csdk_build_parameters.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/check_csdk_build_parameters.yml b/.github/workflows/check_csdk_build_parameters.yml
--- a/.github/workflows/check_csdk_build_parameters.yml
+++ b/.github/workflows/check_csdk_build_parameters.yml
@@ -8,3 +8,6 @@
     - cron:  '0 12 * * *'
-    
+
+permissions:
+  contents: read
+
 jobs:
EOF
@@ -8,3 +8,6 @@
- cron: '0 12 * * *'


permissions:
contents: read

jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines 30 to 63
runs-on: ubuntu-latest
needs: build_csdk_build_parameters_extractor
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
strategy:
matrix:
target: ["nanox", "nanosplus", "stax", "flex"]
steps:
- name: Checkout Rust SDK
uses: actions/checkout@v4
- name: Checkout C BP
uses: actions/checkout@v4
with:
repository: LedgerHQ/app-boilerplate
path: c_boilerplate
- name: Download C SDK Build Parameters Extractor
uses: actions/download-artifact@v4
with:
name: c_sdk_build_params_extractor
- name: Run C SDK Build Parameters Extractor
run: |
c_sdk_build_params_extractor --app-path c_boilerplate \
--device ${{ matrix.target }}
# Compare output with matching file
diff c_sdk_build_${{ matrix.target }}.cflags ledger_secure_sdk_sys/c_sdk_build_${{ matrix.target }}.cflags
if [ $? -ne 0 ]; then
echo "C SDK build parameters CFLAGS do not match for target ${{ matrix.target }}"
exit 1
fi
diff c_sdk_build_${{ matrix.target }}.defines ledger_secure_sdk_sys/c_sdk_build_${{ matrix.target }}.defines
if [ $? -ne 0 ]; then
echo "C SDK build parameters DEFINES do not match for target ${{ matrix.target }}"
exit 1
fi

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 2 days ago

To fix the issue, we will add a permissions block at the root of the workflow file. This block will define the minimal permissions required for the workflow to function correctly. Based on the actions used in the workflow (actions/checkout, actions/upload-artifact, and actions/download-artifact), the workflow likely requires contents: read and possibly contents: write for artifact upload. We will start with contents: read and adjust if necessary.

The permissions block will be added after the name field and before the on field in the workflow file.


Suggested changeset 1
.github/workflows/check_csdk_build_parameters.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/check_csdk_build_parameters.yml b/.github/workflows/check_csdk_build_parameters.yml
--- a/.github/workflows/check_csdk_build_parameters.yml
+++ b/.github/workflows/check_csdk_build_parameters.yml
@@ -1,2 +1,4 @@
 name: Build C Boilerplate application and check if C SDK build parameters are still correct
+permissions:
+  contents: read
 
EOF
@@ -1,2 +1,4 @@
name: Build C Boilerplate application and check if C SDK build parameters are still correct
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
@yogh333 yogh333 force-pushed the y333/apex_support branch from ec069bc to e63ebc8 Compare July 24, 2025 14:29
@yogh333 yogh333 force-pushed the y333/apex_support branch from e63ebc8 to ff5cdec Compare July 24, 2025 14:43
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