@@ -18,12 +18,14 @@ runs:
1818 # Install the python version that has been defined in the .python-version
1919 # file.
2020 #
21+ # yamllint disable-line rule:line-length
2122 - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2223 with :
2324 cache : pip
2425 #
2526 # Code security scanning.
2627 #
28+ # yamllint disable-line rule:line-length
2729 - uses : anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v6.2.0
2830 with :
2931 only-fixed : false
3941 requirements_file=requirements.txt
4042 if [ -f ${requirements_file} ]; then
4143 pip install \
42- -r ${requirements_file}
44+ --requirement ${requirements_file}
4345 fi
4446 #
4547 # Run pytest if 'import pytest' is found.
6163 - name : Code linting with Flake8
6264 shell : bash
6365 run : |
64- pip install flake8==7.2.0
66+ python3 -m pip install \
67+ --require-hashes \
68+ --user \
69+ --requirement \
70+ ${GITHUB_ACTION_PATH}/configs/pip/flake8/requirements.txt
6571
6672 errors=$(flake8 -v --max-line-length=150 --exclude=client/,.venv/,venv/ --count --statistics --exit-zero .)
6773 echo "Flake8 reported $errors errors/warnings."
@@ -88,10 +94,16 @@ runs:
8894 shell : bash
8995 run : |
9096 pip install pyinstaller==v6.13.0
97+ python3 -m pip install \
98+ --require-hashes \
99+ --user \
100+ --requirement \
101+ ${GITHUB_ACTION_PATH}/configs/pip/pyinstaller/requirements.txt
91102 pyinstaller --onefile main.py --name gomod-go-version-updater
92- - name : Attach a binary to a release
103+ # yamllint disable-line rule:line-length
104+ - uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
105+ name : Attach a binary to a release
93106 if : ${{ steps.condition_check.outcome == 'success' }}
94- uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
95107 with :
96108 repo_token : ${{ inputs.token }}
97109 file : dist/${{ inputs.pyinstaller-binary-name }}
0 commit comments