Skip to content

Docker run doesn't recognize the token #397

@0GiS0

Description

@0GiS0

Hi all!

I'm trying to scan a .NET project but sast-scanner requires the token for that. If I choose sl it works perfectly:

export SHIFTLEFT_ACCESS_TOKEN=$SL_TOKEN
sl analyze --app shiftleft-csharp-demo --csharp --wait netcoreWebapi.csproj

But If I try to use the container It seems It doesn't receive the token in the env that It expects:

docker run --rm -e "WORKSPACE=${PWD}" -e SHIFTLEFT_ACCESS_TOKEN="$SL_TOKEN" -v $PWD:/app shiftleft/scan scan --src /app --out_dir /app/reports

image

Any thoughts?

Thank you so much!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions