Skip to content

Fix semgrep findings #2061

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

Merged
merged 1 commit into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .semgrepignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Ignore test and example files containing dummy credentials
**/test/**/*.json
**/tests/**/*.json
**/SampleRequests/**/*.json
**/*.example.*
**/*.test.*
**/*.min.js
**/env.configs.yml

# Ignore third-party libraries
**/node_modules/**
**/vendor/**
**/dist/**
**/build/**
**/bootstrap/**/*.js
3 changes: 3 additions & 0 deletions LambdaRuntimeDockerfiles/sample/Sample/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ RUN dotnet publish "Sample.csproj" -c Release -o /app/publish
FROM base AS final
COPY --from=publish /app/publish ${LAMBDA_TASK_ROOT}
# ref. https://docs.aws.amazon.com/lambda/latest/dg/csharp-handler.html#csharp-handler-signatures
# Create a non-root user and switch to it
RUN adduser --disabled-password --gecos "" appuser
USER appuser
CMD [ "Sample::Sample.Function::FunctionHandler" ]
Loading