Skip to content

🌱 harden git workflows#2512

Open
PrashantR30 wants to merge 1 commit into
NVIDIA:mainfrom
PrashantR30:main
Open

🌱 harden git workflows#2512
PrashantR30 wants to merge 1 commit into
NVIDIA:mainfrom
PrashantR30:main

Conversation

@PrashantR30
Copy link
Copy Markdown

Description

This PR hardens GitHub Actions workflows by disabling persisted Git credentials on checkout steps and explicitly scoping workflow permissions to the minimum required access.

The changes reduce the risk of unintended GITHUB_TOKEN exposure to later workflow steps while preserving existing CI behavior. Workflows that only read repository contents now use read-only permissions, while image publishing workflows keep the required package write permissions.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Validated the workflow YAML changes manually.
No application code was changed. This PR only updates GitHub Actions workflow configuration for credential and permission hardening, but still we let the test run to validate if the workflow operation works.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jun 2, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@PrashantR30 PrashantR30 force-pushed the main branch 2 times, most recently from de467c4 to 0936b38 Compare June 3, 2026 10:35
Signed-off-by: PrashantR30 <pramhit@mirantis.com>
@rahulait
Copy link
Copy Markdown
Contributor

rahulait commented Jun 3, 2026

Thanks @PrashantR30 for this change. Is there a specific reason why a subset of workflows were updated? For example, coverage.yaml, release-images-list.yaml, etc were not touched.

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