Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker run doesn't recognize the token #397

Open
0GiS0 opened this issue Oct 9, 2023 · 1 comment
Open

Docker run doesn't recognize the token #397

0GiS0 opened this issue Oct 9, 2023 · 1 comment

Comments

@0GiS0
Copy link

0GiS0 commented Oct 9, 2023

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!!

@Ferada
Copy link
Member

Ferada commented Oct 10, 2023

Try also setting the SHIFTLEFT_ORG_ID environment variable to your organization ID, then it should proceed further.

Are you interested in the specific output of this tool? sl is generally better supported.

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

No branches or pull requests

2 participants