Fix code review issues: version consistency, glob pattern, and redundant execution
Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
7
.github/workflows/dependency-review.yml
vendored
7
.github/workflows/dependency-review.yml
vendored
@@ -133,12 +133,15 @@ jobs:
|
||||
|
||||
# Check requirements.txt if exists
|
||||
if [ -f "requirements.txt" ]; then
|
||||
if safety check -r requirements.txt; then
|
||||
if safety check -r requirements.txt 2>&1 | tee safety_output.txt; then
|
||||
echo "✅ No known vulnerabilities in Python dependencies" >> $GITHUB_STEP_SUMMARY
|
||||
else
|
||||
echo "⚠️ Vulnerabilities detected in Python dependencies" >> $GITHUB_STEP_SUMMARY
|
||||
safety check -r requirements.txt || true
|
||||
cat safety_output.txt >> $GITHUB_STEP_SUMMARY || true
|
||||
rm -f safety_output.txt
|
||||
exit 0
|
||||
fi
|
||||
rm -f safety_output.txt
|
||||
else
|
||||
echo "ℹ️ No requirements.txt found" >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
|
||||
3
.github/workflows/standards-compliance.yml
vendored
3
.github/workflows/standards-compliance.yml
vendored
@@ -384,7 +384,8 @@ jobs:
|
||||
echo "### Workflow YAML Syntax" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
INVALID=0
|
||||
for workflow in .github/workflows/*.yml .github/workflows/*.yaml 2>/dev/null; do
|
||||
shopt -s nullglob
|
||||
for workflow in .github/workflows/*.yml .github/workflows/*.yaml; do
|
||||
if [ -f "$workflow" ]; then
|
||||
if python3 -c "import yaml; yaml.safe_load(open('$workflow'))" 2>/dev/null; then
|
||||
echo "✅ $(basename $workflow)" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
INGROUP: Moko-Cassiopeia.Documentation
|
||||
REPO: https://github.com/mokoconsulting-tech/moko-cassiopeia
|
||||
FILE: docs/README.md
|
||||
VERSION: 03.05.00
|
||||
VERSION: 01.00.00
|
||||
BRIEF: Documentation index for Moko-Cassiopeia template
|
||||
PATH: /docs/README.md
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user