Skip to content

Add GitHub Actions workflow for private security scan#477

Open
bapplejax wants to merge 1 commit intomainfrom
adding-epyon-scanning
Open

Add GitHub Actions workflow for private security scan#477
bapplejax wants to merge 1 commit intomainfrom
adding-epyon-scanning

Conversation

@bapplejax
Copy link
Copy Markdown
Contributor

Description

Adding Epyon file for code scanning checks. This will run nightly and can be run through actions manually

@bapplejax bapplejax self-assigned this Mar 31, 2026
Copilot AI review requested due to automatic review settings March 31, 2026 14:52
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.59%. Comparing base (506670e) to head (69456c1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #477   +/-   ##
=======================================
  Coverage   99.59%   99.59%           
=======================================
  Files          51       51           
  Lines         997      997           
  Branches      346      346           
=======================================
  Hits          993      993           
  Misses          4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a scheduled + manually-triggerable GitHub Actions workflow to run MetroStar’s Epyon private-repo security scanning against this repository.

Changes:

  • Introduces a new workflow triggered nightly (cron) and via workflow_dispatch.
  • Wires workflow inputs (scan mode, subdirectory, Garak settings) through to the Epyon reusable workflow.
  • Configures permissions and concurrency for the scan job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

name: Private Security Scan

# Epyon private-repo scanner entrypoint.
# This workflow delegates execution to the local reusable workflow.
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

The header comment says this delegates to a "local reusable workflow", but the job actually calls a reusable workflow in the external MetroStar/epyon repository. Please update the comment to accurately describe where the workflow is sourced from (or switch to a local reusable workflow if that was the intent).

Suggested change
# This workflow delegates execution to the local reusable workflow.
# This workflow delegates execution to the reusable workflow in the MetroStar/epyon repository.

Copilot uses AI. Check for mistakes.
pull-requests: write
security-events: write
issues: write
uses: MetroStar/epyon/.github/workflows/epyon-scan.yml@main
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

The reusable workflow is referenced with @main, which is mutable. For supply-chain safety, pin reusable workflow calls to an immutable ref (a tag or, preferably, a full commit SHA) so a change upstream can’t silently alter what runs in this repository.

Suggested change
uses: MetroStar/epyon/.github/workflows/epyon-scan.yml@main
uses: MetroStar/epyon/.github/workflows/epyon-scan.yml@v1

Copilot uses AI. Check for mistakes.
garak_target_type: ${{ github.event.inputs.garak_target_type || 'openai' }}
garak_target_name: ${{ github.event.inputs.garak_target_name || 'gpt-4o-mini' }}
garak_probes: ${{ github.event.inputs.garak_probes || 'promptinject' }}
secrets: inherit
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

secrets: inherit passes all repository/environment secrets to the called workflow in another repo. To reduce blast radius if the upstream workflow is ever compromised (or misbehaves), pass only the specific secrets the scan needs (and keep the reusable workflow ref pinned to an immutable SHA).

Suggested change
secrets: inherit
secrets:
EPYON_SCAN_TOKEN: ${{ secrets.EPYON_SCAN_TOKEN }}

Copilot uses AI. Check for mistakes.
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