Skip to content

Conversation

@julianhr
Copy link
Contributor

@julianhr julianhr commented Jun 30, 2025

Description

Motivation

We are adding recipes for AWS Nova models. These recipes will be used by customer to trigger SMTJ.

Changes

  • The change set contains only the recipe files.

Testing

AGI Team and SMTJ team tested these recipes on SMTJ platform and made sure they are working with a successful training job.

Merge Checklist

Put an x in the boxes that apply. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • I have read the CONTRIBUTING doc
  • I have run pre-commit run --all-files on my code. It will check for this configuration.
  • I have updated any necessary documentation, including READMEs and API docs (if appropriate)
  • I have verified the licenses used in the license-files artifact generated in the Python License Scan CI check. If the license workflow fails, kindly check the licenses used in the artifact.

Tests

  • I have run pytest on my code and all unit tests passed.
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment on lines +10 to +28
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8' # Set python version to 3.8

- name: Install pre-commit dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit

- name: Run pre-commit checks
run: |
pre-commit run --all-files

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 7 months ago

To fix the issue, we need to add a permissions block to the workflow. Since the workflow does not require write access, we can set the permissions to contents: read, which limits the GITHUB_TOKEN to read-only access to the repository contents. This change ensures that the workflow operates securely and adheres to the principle of least privilege.

The permissions block should be added at the root level of the workflow, applying to all jobs in the workflow. This avoids redundancy and ensures consistent permissions across all jobs.


Suggested changeset 1
.github/workflows/pre-commit-check-runner-pull.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/pre-commit-check-runner-pull.yml b/.github/workflows/pre-commit-check-runner-pull.yml
--- a/.github/workflows/pre-commit-check-runner-pull.yml
+++ b/.github/workflows/pre-commit-check-runner-pull.yml
@@ -2,2 +2,5 @@
 
+permissions:
+  contents: read
+
 on:
EOF
@@ -2,2 +2,5 @@

permissions:
contents: read

on:
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
Comment on lines +10 to +32
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive # Checkout submodules as well

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8' # Set python version to 3.8

- name: Install unit test dependencies
run: |
python -m pip install --upgrade pip
pip install -r launcher/nemo/nemo_framework_launcher/requirements.txt
pip install pytest
pip install pytest-cov

- name: Run unit tests
run: |
python -m pytest

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 7 months ago

To fix the issue, we need to add a permissions block to the workflow file. Since the workflow is focused on running unit tests, it likely only requires read access to the repository contents. We will add the permissions key at the root level of the workflow to apply the least privilege permissions (contents: read) to all jobs in the workflow. This ensures that the GITHUB_TOKEN has minimal access.


Suggested changeset 1
.github/workflows/unit-test-runner-pull.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/unit-test-runner-pull.yml b/.github/workflows/unit-test-runner-pull.yml
--- a/.github/workflows/unit-test-runner-pull.yml
+++ b/.github/workflows/unit-test-runner-pull.yml
@@ -7,2 +7,5 @@
 
+permissions:
+  contents: read
+
 jobs:
EOF
@@ -7,2 +7,5 @@

permissions:
contents: read

jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this change included?

@julianhr julianhr closed this Jun 30, 2025
@julianhr
Copy link
Contributor Author

Closing PR since the Prime Nova team intends to introduce additional changes

@julianhr julianhr deleted the release-1.4.0 branch June 30, 2025 22:13
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.

2 participants