-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add clang-uml dependency and test #120
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your first PR. We really appreciate it!
🦙 MegaLinter status: ❌ ERROR
See detailed report in MegaLinter reports |
@@ -1,4 +1,5 @@ | |||
{ | |||
"software-properties-common" : "0.99.22.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[MegaLinter] reported by reviewdog 🐶
"software-properties-common" : "0.99.22.7", | |
"software-properties-common": "0.99.22.7", |
"targets": [ | ||
"test-clang-uml" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[MegaLinter] reported by reviewdog 🐶
"targets": [ | |
"test-clang-uml" | |
] | |
"targets": ["test-clang-uml"] |
.devcontainer/Dockerfile
Outdated
COPY .devcontainer/gcc-${GCC_VERSION}/apt-requirements.json /tmp/apt-requirements-gcc.json | ||
|
||
# Skip caching for the next RUN command | ||
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache |
Check notice
Code scanning / Trivy (MegaLinter REPOSITORY_TRIVY)
ADD instead of COPY Low
Type: dockerfile
Vulnerability DS005
Severity: LOW
Message: Consider using 'COPY "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache' command instead of 'ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache'
Link: DS005
.devcontainer/Dockerfile
Outdated
@@ -35,6 +40,8 @@ | |||
# Set default generator for CMake to Ninja | |||
ENV CMAKE_GENERATOR="Ninja" | |||
|
|||
# Skip caching for the next RUN command | |||
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache |
Check notice
Code scanning / Trivy (MegaLinter REPOSITORY_TRIVY)
ADD instead of COPY Low
Type: dockerfile
Vulnerability DS005
Severity: LOW
Message: Consider using 'COPY "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache' command instead of 'ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache'
Link: DS005
RUN git clone https://github.com/bkryza/clang-uml \ | ||
&& apt-get update && apt-get install -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev \ | ||
&& cd clang-uml \ | ||
&& LLVM_VERSION=${CLANG_VERSION} make release/CMakeLists.txt \ | ||
&& cmake --build release --config release --target clang-uml \ | ||
&& cmake --install release \ | ||
&& cd .. \ | ||
&& rm -rf /clang-uml \ | ||
&& apt-get purge -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean |
Check warning
Code scanning / Trivy (MegaLinter REPOSITORY_TRIVY)
'RUN cd ...' to change directory Medium
Type: dockerfile
Vulnerability DS013
Severity: MEDIUM
Message: RUN should not be used to change directory: 'git clone https://github.com/bkryza/clang-uml && apt-get update && apt-get install -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev && cd clang-uml && LLVM_VERSION=${CLANG_VERSION} make release/CMakeLists.txt && cmake --build release --config release --target clang-uml && cmake --install release && cd .. && rm -rf /clang-uml && apt-get purge -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev && apt-get autoremove -y && apt-get clean'. Use 'WORKDIR' statement instead.
Link: DS013
RUN git clone https://github.com/bkryza/clang-uml \ | ||
&& apt-get update && apt-get install -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev \ | ||
&& cd clang-uml \ | ||
&& LLVM_VERSION=${CLANG_VERSION} make release/CMakeLists.txt \ | ||
&& cmake --build release --config release --target clang-uml \ | ||
&& cmake --install release \ | ||
&& cd .. \ | ||
&& rm -rf /clang-uml \ | ||
&& apt-get purge -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean |
Check failure
Code scanning / Trivy (MegaLinter REPOSITORY_TRIVY)
'apt-get' missing '--no-install-recommends' High
Type: dockerfile
Vulnerability DS029
Severity: HIGH
Message: '--no-install-recommends' flag is missed: 'git clone https://github.com/bkryza/clang-uml && apt-get update && apt-get install -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev && cd clang-uml && LLVM_VERSION=${CLANG_VERSION} make release/CMakeLists.txt && cmake --build release --config release --target clang-uml && cmake --install release && cd .. && rm -rf /clang-uml && apt-get purge -y libclang-${CLANG_VERSION}-dev llvm-${CLANG_VERSION}-dev libclang-cpp${CLANG_VERSION}-dev libsqlite3-dev && apt-get autoremove -y && apt-get clean'
Link: DS029
Summary
Example output
Why is it closed?
** No arm package available
** Building from source fails on arm