Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM fedora:36

RUN dnf -y update \
&& dnf -y install csdiff git ShellCheck \
&& dnf -y install git ShellCheck \
&& sudo dnf install -y dnf-plugins-core \
&& sudo dnf copr enable -y packit/csutils-csdiff-81 \
&& sudo dnf install -y csdiff \
&& dnf clean all

RUN mkdir -p /action
Expand Down
3 changes: 3 additions & 0 deletions src/error.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if

Check failure

Code scanning / shellcheck

Couldn't parse this if expression. Fix to allow more checks.

Couldn't parse this if expression. Fix to allow more checks.
echo 'YOLO'
done

Check failure

Code scanning / shellcheck

Expected 'then'.

Expected 'then'.

Check failure

Code scanning / shellcheck

Unexpected keyword/token. Fix any mentioned problems and try again.

Unexpected keyword/token. Fix any mentioned problems and try again.
4 changes: 4 additions & 0 deletions src/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ declare \
# FILE PATHS #
# ------------ #

a="a *"

echo $a

Check notice

Code scanning / shellcheck

Double quote to prevent globbing and word splitting.

Double quote to prevent globbing and word splitting.

# Make directory $GITHUB_WORKSPACE (/github/workspace) git-save
git config --global --add safe.directory "${GITHUB_WORKSPACE}"

Expand Down
9 changes: 9 additions & 0 deletions src/new.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

. $source'/script'

Check warning

Code scanning / shellcheck

source is referenced but not assigned.

source is referenced but not assigned.

Check notice

Code scanning / shellcheck

Not following: ./script: openBinaryFile: does not exist (No such file or directory)

Not following: ./script: openBinaryFile: does not exist (No such file or directory)

Check notice

Code scanning / shellcheck

Double quote to prevent globbing and word splitting.

Double quote to prevent globbing and word splitting.

Check notice

Code scanning / shellcheck

Prefer putting braces around variable references even when not strictly required.

Prefer putting braces around variable references even when not strictly required.

[[ $a =~ 'a' ]] && exit 0

Check warning

Code scanning / shellcheck

In POSIX sh, [[ ]] is undefined.

In POSIX sh, [[ ]] is undefined.

Check warning

Code scanning / shellcheck

a is referenced but not assigned.

a is referenced but not assigned.

Check notice

Code scanning / shellcheck

Prefer putting braces around variable references even when not strictly required.

Prefer putting braces around variable references even when not strictly required.

echo 'YOYOYO'

exit 1