Skip to content

Commit

Permalink
add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Jan 19, 2024
1 parent aac0acd commit 72a5fcf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ jobs:
# Update requirements.in with the snyk fix suggestions
python tools/snyk-update.py
# Remove unnecessary file so that it doesn't get added to the repo
rm scan.json
# Update requirements.txt
make update-dependencies
# Check if there are any changes
if [ -z "$(git status --porcelain)" ]; then

Check failure on line 48 in .github/workflows/snyk.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

48:54 [trailing-spaces] trailing spaces

Check failure on line 48 in .github/workflows/snyk.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

48:54 [trailing-spaces] trailing spaces
echo "Found vulnerable issues but no upgrade or patch available"
cat scan.json | jq '[.vulnerabilities[] | .id] | unique[]'
else

Check failure on line 51 in .github/workflows/snyk.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

51:15 [trailing-spaces] trailing spaces

Check failure on line 51 in .github/workflows/snyk.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

51:15 [trailing-spaces] trailing spaces
echo "changed made"
git diff
fi
# Fail so that PR is created
exit 1
- name: Create Pull Request
Expand Down
2 changes: 1 addition & 1 deletion ckan/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ requests==2.31.0
importlib-resources<6.0
gevent>=23.9.0
cryptography>=41.0.6
jinja2>=3.1.3
jinja2==3.1.2
2 changes: 1 addition & 1 deletion ckan/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alembic==1.8.1
aalembic==1.8.1
async-timeout==4.0.3
Babel==2.10.3
Beaker==1.11.0
Expand Down

0 comments on commit 72a5fcf

Please sign in to comment.