Skip to content

Commit

Permalink
Use prebuilt docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Mar 14, 2021
1 parent 89c352b commit f63858f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
11 changes: 1 addition & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
FROM ubuntu:20.04

ENV CXX=clang++
ARG DEBIAN_FRONTEND=noninteractive
FROM jdomagala/static_analysis:latest

COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh

COPY run_static_analysis.py /
RUN chmod +x /run_static_analysis.py

RUN apt-get update && apt-get install -y python3 python3-pip git xorg-dev\
build-essential clang-11 lldb-11 lld-11 libc++-11-dev cppcheck llvm-dev clang-tidy
RUN pip3 install PyGithub

RUN git clone https://github.com/Kitware/CMake.git && cd CMake && ./bootstrap && make && make install

ENTRYPOINT ["/entrypoint.sh"]
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# static-analysis-action
# Static Analysis

GitHub action for CMake based C++ project, that runs cppcheck and clang-tidy, and creates comment for PR with any issues found. Created comment will contain code snippets with the issue description. When this action is run for the first time, the comment with the initial result will be created for current Pull Request. Consecutive runs will edit this comment with updated status.

Expand All @@ -23,11 +23,9 @@ jobs:
## Inputs
Following inputs can be used to customize the graph
| Name |Required| Description | Default value |
|-------------------------|--------|------------------------------------|---------------|
| `github_token` | TRUE | Github token used for Github API requests | ${{ github.token }} |
| `pr_num` | TRUE | Pull request number for which the comment will be created | ${{ github.event.pull_request.number }} |
| `comment_title` | TRUE | Title for comment with the raport. This should be an unique name | Static analysis result |
| `exclude_dir` | FALSE | Directory which should be excluded from the raport | <empty> |
| `comment_title` | TRUE | Title for comment with the raport. This should be an unique name | `Static analysis result` |
| `exclude_dir` | FALSE | Directory which should be excluded from the raport | `empty` |

0 comments on commit f63858f

Please sign in to comment.