Skip to content
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 Checkton workflow #1085

Closed
wants to merge 6 commits into from
Closed

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Jun 21, 2024

This PR demonstrates Checkton's features, such as...

  • When a file is renamed, do not treat it as a completely new file. Report only new issues introduced in the PR
  • When a file is copied (e.g. creating a new version of a task), report only new issues compared to the source file

@@ -268,7 +268,7 @@

unshare -Uf $UNSHARE_ARGS --keep-caps -r --map-users 1,1,65536 --map-groups 1,1,65536 -w ${SOURCE_CODE_DIR}/$CONTEXT -- buildah build \
$VOLUME_MOUNTS \
"${BUILDAH_ARGS[@]}" \
${BUILDAH_ARGS[@]} \

Check failure

Code scanning / shellcheck

SC2068 Error

Double quote array expansions to avoid re-splitting elements.
@@ -268,7 +268,7 @@

unshare -Uf $UNSHARE_ARGS --keep-caps -r --map-users 1,1,65536 --map-groups 1,1,65536 -w ${SOURCE_CODE_DIR}/$CONTEXT -- buildah build \
$VOLUME_MOUNTS \
"${BUILDAH_ARGS[@]}" \
${BUILDAH_ARGS[@]} \

Check warning

Code scanning / shellcheck

SC3054 Warning

In POSIX sh, array references are undefined.
mountPath: /mnt/trusted-ca
readOnly: true
script: |
if [ -z ${INPUT} ]

Check warning

Code scanning / shellcheck

SC2086 Warning

Double quote to prevent globbing and word splitting.
@@ -248,6 +248,7 @@
image: registry.redhat.io/openshift4/ose-cli:v4.12@sha256:0d21299d2adfa3cb74562c4dffbedd3b107fffac3a2a537f14770088abd4671f
script: |
#!/usr/bin/env bash
echo $HI

Check warning

Code scanning / shellcheck

SC2086 Warning

Double quote to prevent globbing and word splitting.
@@ -268,7 +270,7 @@

unshare -Uf $UNSHARE_ARGS --keep-caps -r --map-users 1,1,65536 --map-groups 1,1,65536 -w ${SOURCE_CODE_DIR}/$CONTEXT -- buildah build \
$VOLUME_MOUNTS \
"${BUILDAH_ARGS[@]}" \
${BUILDAH_ARGS[@]} \

Check failure

Code scanning / shellcheck

SC2068 Error

Double quote array expansions to avoid re-splitting elements.
Checkton should not report any warnings

Signed-off-by: Adam Cmiel <[email protected]>
Checkton should only report the new addition

Signed-off-by: Adam Cmiel <[email protected]>
Checkton should not report any warnings

Signed-off-by: Adam Cmiel <[email protected]>
Checkton should only report the new problem

Signed-off-by: Adam Cmiel <[email protected]>
While at the same time, fixing another problem by using a more accurate
shebang

Signed-off-by: Adam Cmiel <[email protected]>
@@ -308,7 +310,7 @@

unshare -Uf $UNSHARE_ARGS --keep-caps -r --map-users 1,1,65536 --map-groups 1,1,65536 -w ${SOURCE_CODE_DIR}/$CONTEXT -- buildah build \
$VOLUME_MOUNTS \
"${BUILDAH_ARGS[@]}" \
${BUILDAH_ARGS[@]} \

Check failure

Code scanning / shellcheck

SC2068 Error

Double quote array expansions to avoid re-splitting elements.
@chmeliik
Copy link
Contributor Author

Adding for real in #1183

@chmeliik chmeliik closed this Jul 23, 2024
@chmeliik chmeliik deleted the test-checkton branch July 23, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant