-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v1.0
- Loading branch information
Showing
87 changed files
with
43,391 additions
and
20,989 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: GuardDog | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- v* | ||
pull_request: | ||
branches: | ||
- main | ||
- v* | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
guarddog: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
name: Scan dependencies | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install GuardDog | ||
run: pip install . | ||
|
||
- run: guarddog pypi verify requirements.txt --output-format sarif --exclude-rules repository_integrity_mismatch > guarddog.sarif | ||
|
||
- name: Upload SARIF file for GitHub Advanced Security Dashboard | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
category: guarddog-builtin | ||
sarif_file: guarddog.sarif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ dist/ | |
wheels/ | ||
*.egg-info/ | ||
build/ | ||
.coverage* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
FROM python:3.10-alpine3.16 | ||
FROM python:3.10.9-alpine3.17 AS builder | ||
LABEL org.opencontainers.image.source="https://github.com/DataDog/guarddog/" | ||
RUN mkdir /app | ||
# gcc and musl-dev needed for the pip install | ||
RUN apk add --update gcc musl-dev | ||
RUN apk add --update gcc musl-dev g++ libgit2-dev libffi-dev | ||
ADD . /app | ||
WORKDIR /app | ||
RUN pip install -r requirements.txt | ||
ENTRYPOINT ["python", "-m", "guarddog"] | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
#FROM cgr.dev/chainguard/python:latest AS runner | ||
#COPY --from=builder /app /app | ||
#COPY --from=builder /usr/local/lib/python3.10/site-packages /app/site-packages | ||
#ENV PYTHONPATH=/app/site-packages | ||
WORKDIR /app | ||
ENTRYPOINT ["python", "-m", "guarddog"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.