-
Notifications
You must be signed in to change notification settings - Fork 504
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
add terrascan atlantis container files, scripts and doc. #684
Conversation
Codecov Report
@@ Coverage Diff @@
## master #684 +/- ##
==========================================
- Coverage 74.56% 73.86% -0.70%
==========================================
Files 110 110
Lines 3082 3176 +94
==========================================
+ Hits 2298 2346 +48
- Misses 609 652 +43
- Partials 175 178 +3
|
Mind having descriptive filenames? atlantis-entrypoint.sh and atlantis.sh is confusing, same with setup and setup1. Other files can also be clearer (workflow.yaml --> terrascan_workflow,yaml) Also, maybe consolidate the 3 commands in setup.sh with the Dockerfile? Lastly we've refactored the docs page, so instead of reuploading the old doc, edit the doc inside /docs/integrations/ |
33e6a8b
to
6c2617e
Compare
@amirbenv Changes made |
@@ -62,7 +61,7 @@ $ atlantis server \ | |||
--gh-token="$TOKEN" \ | |||
--gh-webhook-secret="$SECRET" \ | |||
--repo-allowlist="$REPO_ALLOWLIST" \ | |||
--repo-config=terrascan-workflow.yaml | |||
--repo-config=terrascan-terrascan_workflow.yaml |
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.
I think there's an extra "terrascan-" in there
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.
I don't see anything related to building accurics/terrascan_atlantis
or pushing it to docker hub?
atlantis/Dockerfile
Outdated
ENV DEFAULT_TERRASCAN_VERSION=1.5.0 | ||
ENV PLANFILE tfplan | ||
ADD setup.sh terrascan.sh launch-atlantis.sh entrypoint.sh /usr/local/bin/ | ||
RUN touch ${PLANFILE} && mkdir -p /etc/atlantis/ && chmod +x /usr/local/bin/setup.sh /usr/local/bin/terrascan.sh /usr/local/bin/launch-atlantis.sh /usr/local/bin/entrypoint.sh && setup.sh |
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.
Break each command onto a separate line after each &&
to help with readability.
Also - specify the full path to setup.sh
6c2617e
to
b999472
Compare
Blocked on #705 |
9c4df1a
to
5bd1cf8
Compare
For verifying the output : Incase of no violations from terrascan: devang-gaur/atlantis-demo#3 (comment) (basically no comments from terrascan). The CI passes. Incase of 1 or more violations from terrascan: devang-gaur/atlantis-demo#3 (comment) ( THE CI WILL BREAK ) To test the container yourself, you can follow along the docs I added on this PR. or try
|
Besides the comment on the version stuff in the docs, I think this is good to go. |
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.
Hmm...I as new versions of helm/terraform/kustomize/etc come out, we usually have to do a new release to support, so probably the same for Atlantis?
(sorry for double comment, GH not letting me delete)
5bd1cf8
to
1eba9c4
Compare
Kudos, SonarCloud Quality Gate passed! |
@jlk I updated the doc once more. please check |
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.
LGTM
#686
To test the container :
Follow along the doc from here.
https://github.com/accurics/terrascan/pull/684/files#diff-eef1440e3de84d482add1b05dff1df7e5553757ed39a6a5ecf6007e91c4f412cR76