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 shellcheck scan action #18

Merged
merged 41 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a3b8188
trivy action corrected
zLukas Oct 14, 2024
b070b0f
add branch parameter to trivy workflow
zLukas Oct 14, 2024
b670583
action trigger
zLukas Nov 4, 2024
80b7e36
Update trivy.yml
zLukas Nov 4, 2024
2244553
merge conflicts resolved
zLukas Nov 15, 2024
93c4f14
delete unused file
zLukas Nov 15, 2024
3c6efcd
Merge branch 'main' into main
zLukas Nov 18, 2024
ccbf841
Update build_tiber.yml
zLukas Nov 20, 2024
bfbec2c
Update build_tiber.yml
zLukas Nov 20, 2024
cd3ff42
Update build_tiber.yml
zLukas Nov 20, 2024
ddb0a2f
add trivy alternative dbs
zLukas Nov 20, 2024
581cc52
hadolint added (#2)
zLukas Nov 26, 2024
83cc343
Update linters.yml
zLukas Nov 26, 2024
4e4c6d7
Update linters.yml
zLukas Nov 26, 2024
5c34a4a
The production Intel® Tiber™ Broadcast Suite, version 24.11 (#12)
awilczyns Nov 21, 2024
7d77dab
Fix Trivy issues in Dockerfile.sources (#13)
Mionsz Nov 22, 2024
57e4620
Added missing ca-certificates package (#15)
awilczyns Nov 25, 2024
3d24a50
Merge branch 'main' into main
zLukas Nov 26, 2024
41712ac
Update hadolint.yaml
zLukas Nov 26, 2024
3a687e9
Update .github/configs/hadolint.yaml
zLukas Nov 27, 2024
adaf65e
Update hadolint.yaml
zLukas Nov 27, 2024
bc7adbe
fix "if: alway()" logic
zLukas Nov 27, 2024
d1770f6
Merge branch 'main' into main
zLukas Nov 27, 2024
49a349b
bump checkout action version
zLukas Nov 27, 2024
4825940
virus scan added
zLukas Nov 28, 2024
c44ec4d
Merge remote-tracking branch 'upstream/main'
zLukas Nov 28, 2024
d6f97be
fix syntax
zLukas Nov 28, 2024
63843d7
Update virus_scan.yml
zLukas Nov 28, 2024
050c3c8
Update virus_scan.yml
zLukas Nov 28, 2024
127d5a3
shellcheck added
zLukas Nov 28, 2024
abd6f57
shellcheck added
zLukas Nov 28, 2024
b3b40f1
synrtax fix
zLukas Nov 28, 2024
34fb449
syntax fix
zLukas Nov 28, 2024
88a67a9
Update linters.yml
zLukas Nov 29, 2024
7c7fe62
Update linters.yml
zLukas Nov 29, 2024
a138097
Update linters.yml
zLukas Nov 29, 2024
7a67b8b
mergoe conflicts resolved
zLukas Nov 29, 2024
b97ba70
resolve shellchekc errors
zLukas Nov 29, 2024
8587421
shellckeck lint fix
zLukas Nov 29, 2024
9d59d11
shellckeck lint fix
zLukas Nov 29, 2024
2239407
Update linters.yml
zLukas Dec 2, 2024
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
17 changes: 17 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ jobs:
config: .github/configs/hadolint.yaml
format: tty
failure-threshold: warning


shellcheck:
name: shellcheck
runs-on: ubuntu-latest
steps:
- name: "setup: checkout repo"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: "run shellcheck scan"
uses: ludeeus/action-shellcheck@master
MateuszGrabuszynski marked this conversation as resolved.
Show resolved Hide resolved
with:
severity: warning
format: tty
ignore_paths: .github .sources
env:
SHELLCHECK_OPTS: -e SC2154
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ if ! cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null; then
echo -e ${RED}[ERROR] failed change the current directory to the script directory ${NC}
return 2
fi

# shellcheck source=versions.env
if ! . "${VERSIONS_ENVIRONMENT_FILE}" 2> /dev/null; then
echo
echo -e ${RED}[ERROR] failed to source "${VERSIONS_ENVIRONMENT_FILE}" ${NC}
Expand Down
8 changes: 4 additions & 4 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ function get_and_patch_intel_drivers()
git_download_strip_unpack "intel/ethernet-linux-iavf" "refs/tags/v${IAVF_VER}" "${IAVF_DIR}"
git_download_strip_unpack "intel/ethernet-linux-ice" "refs/tags/v${ICE_VER}" "${ICE_DIR}"

pushd "${ICE_DIR}"
pushd "${ICE_DIR}" || return
patch -p1 -i <(cat "${MTL_DIR}/patches/ice_drv/${ICE_VER}/"*.patch)
popd
popd || return
set +x
}

Expand All @@ -407,9 +407,9 @@ function build_install_and_config_intel_drivers()
set -x
make -j "${NPROC}" -C "${IAVF_DIR}/src" install
make -j "${NPROC}" -C "${ICE_DIR}/src" install
pushd "${IRDMA_DIR}"
pushd "${IRDMA_DIR}" || return
./build.sh
popd
popd || return
config_intel_rdma_driver
modprobe irdma
set +x
Expand Down
Loading