Skip to content
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