Skip to content

Commit fe0d893

Browse files
dependabot[bot]Tyler Titsworth
and
Tyler Titsworth
authored
Bump super-linter/super-linter from 5.7.2 to 6.2.0 in /.github/workflows (#197)
* Bump super-linter/super-linter from 5.7.2 to 6.2.0 in /.github/workflows Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 5.7.2 to 6.2.0. - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](super-linter/super-linter@v5.7.2...v6.2.0) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update lint.yaml * Update lint.yaml * disable lint checks and fix shell exec * add shfmt pre-commit hook * update install list and run shfmt --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tyler Titsworth <tyler.titsworth@intel.com>
1 parent 8a737a8 commit fe0d893

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

.github/utils/val-args.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ input_string="$1"
77

88
# Use regex to find the line that contains '/test-group' and capture it
99
if [[ $input_string =~ /test-group(.*) ]]; then
10-
matched_line="${BASH_REMATCH[1]}"
10+
matched_line="${BASH_REMATCH[1]}"
1111
else
12-
# If the pattern is not found, exit
13-
echo "Error: The input string does not contain a line with '/test-group'."
14-
exit 1
12+
# If the pattern is not found, exit
13+
echo "Error: The input string does not contain a line with '/test-group'."
14+
exit 1
1515
fi
1616

1717
# Use regex to extract key-value pairs with the cases:
@@ -21,10 +21,10 @@ key_val_pairs=$(echo "$matched_line" | grep -oP "$regex" | sed 's/: /=/g')
2121

2222
# Check if there is at least one key-value pair
2323
if [[ -z "$key_val_pairs" ]]; then
24-
echo "Error: The matched line does not contain any valid key-value pairs."
25-
exit 1
24+
echo "Error: The matched line does not contain any valid key-value pairs."
25+
exit 1
2626
fi
2727

2828
# Print the key-value pairs
2929
echo "$key_val_pairs"
30-
echo "$key_val_pairs" >> "$GITHUB_OUTPUT"
30+
echo "$key_val_pairs" >>"$GITHUB_OUTPUT"

.github/workflows/lint.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
2123
- name: Super-linter
22-
uses: super-linter/super-linter/slim@v5.7.2
24+
uses: super-linter/super-linter/slim@v6.2.0
2325
env:
24-
DEFAULT_BRANCH: main
2526
# To report GitHub Actions status checks
2627
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
2728
GITHUB_ACTIONS_COMMAND_ARGS: '-ignore SC.*'
29+
VALIDATE_BASH_EXEC: false
30+
VALIDATE_CHECKOV: false
2831
VALIDATE_KUBERNETES_KUBECONFORM: false
2932
VALIDATE_NATURAL_LANGUAGE: false
3033
VALIDATE_PYTHON_FLAKE8: false

.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ repos:
2727
rev: v0.9.0
2828
hooks:
2929
- id: shellcheck
30+
- repo: https://github.com/cisagov/pre-commit-shfmt
31+
rev: v0.0.2
32+
hooks:
33+
- id: shfmt
3034
- repo: https://github.com/ambv/black
3135
rev: 23.12.1
3236
hooks:

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.
1616
2. Create a new branch for your contribution: `git checkout -b feature/your-feature`.
1717
3. Install [pre-commit](https://pre-commit.com/), [Docker](https://docs.docker.com/engine/install/), and [Python 3.8+](https://www.python.org/downloads/).
1818
4. Follow the [Project Setup](README.md#project-setup) steps.
19-
5. Install the third-party python dependencies necessary for pre-commit with `pip install pytest pylint black`.
19+
5. Install the third-party python dependencies necessary for pre-commit with `pip install pytest pylint black shfmt-py`.
2020
6. Make your changes, commit, and sign your changes: `git commit -s -m 'Add your feature'`.
2121
7. Push to the branch: `git push origin feature/your-feature`.
2222
8. Submit a pull request.

classical-ml/tests/sklearn.sh

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
# For reference:
2727
# https://docs.docker.com/develop/develop-images/build_enhancements/
2828

29-
3029
wget https://raw.githubusercontent.com/intel/ai-containers/main/preset/classical-ml/tests/scikit/kmeans.py
3130
python kmeans.py true
3231

0 commit comments

Comments
 (0)