Skip to content

Support running in a sub-directory of a repo for microservices/components #76

Open

Description

@kadraman

Enhancement Request

The current implementation only seems to support running from the "root" of the GitHub repo. With a monorepo that contains multiple microservices or components in subdirectories the scancentral package command will package up the whole repository.

I believe GitHub Actions supports working-directory for run shell commands and scripts but uses actions need to implement their own approach, maybe something like:

uses: fortify/github-action@v1
with:
    sast-scan: true
    ....
    working-directory: microservice1
...

Activity

  1. added
    enhancement
    on Mar 25, 2025
  2. rsenden commented on Mar 25, 2025

    @rsenden
    Contributor

    This will come automatically with fortify/github-action@v3 once we start using fcli action run ci (see #75). Depending on how long it takes us to get to fortify/github-action@v3, we may want to consider implementing support for a SOURCE_DIR environment variable natively in the GitHub Action, which is an enhancement that we could consider for fortify/github-action@v2. At the moment, I'm not planning any further updates to fortify/github-action@v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions