-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from DIVD-NL/add_cvelint
Adding cvelint to cnabot
- Loading branch information
Showing
3 changed files
with
36 additions
and
6 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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# Container image that runs your code | ||
FROM alpine:latest | ||
|
||
RUN apk update && apk add python3 py3-pip git github-cli | ||
RUN apk update && apk add python3 py3-pip git github-cli tar | ||
RUN pip install cvelib jsonschema python-dateutil deepdiff | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY program/* /run/ | ||
COPY entrypoint.sh /run/ | ||
|
||
ADD https://github.com/mprpic/cvelint/releases/download/v0.1.0/cvelint_Linux_x86_64.tar.gz /tmp/ | ||
RUN tar -xvzf /tmp/cvelint_Linux_x86_64.tar.gz -C /run/ | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
ENTRYPOINT ["/run/entrypoint.sh"] | ||
WORKDIR /cve |
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