Skip to content

Commit

Permalink
Fix changelog entry for Gunicorn 23.0.0
Browse files Browse the repository at this point in the history
The changelog entry for the update to Gunicorn 23.0.0 mentions a
security vulnerability that was fixed, but this vulnerability was
actually fixed in Gunicorn 22.0.0 and described in the changelog
for inboard 0.68.0. This commit will add some logic to the changelog
generation job in GitHub Actions to remove the duplicate info.
  • Loading branch information
br3ndonland committed Jan 10, 2025
1 parent 3e0865f commit fe755da
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,21 @@ jobs:
ESCAPE_DUNDERS='s:([^`])(__)([a-z]+)(__)([^`]):\1\\_\\_\3\\_\\_\5:g'
sed -Ei "$ESCAPE_DUNDERS" CHANGELOG.md
sed -Ei "$ESCAPE_DUNDERS" docs/changelog.md
REPLACEMENT='There are several breaking changes noted in the\n[Gunicorn changelog](https://docs.gunicorn.org/en/latest/news.html).'
sed -Ei \
-e "s|\[Changes\]\(https://docs.gunicorn.org/en/latest/news.html\) include|$REPLACEMENT|g" \
-e "s|There are several breaking changes noted in the Gunicorn.*||g" \
-e "s|a fix for a high-severity security vulnerability \(CVE-2024-1135,||g" \
-e "s|\[GHSA-w3h3-4rj7-4ph4\]\(https://github.com/advisories/GHSA-w3h3-4rj7-4ph4\)\).||g" \
CHANGELOG.md
sed -Ei -z "s|\n\n\n||g" CHANGELOG.md
sed -Ei \
-e "s|\[Changes\]\(https://docs.gunicorn.org/en/latest/news.html\) include|$REPLACEMENT|g" \
-e "s|a fix for a high-severity security vulnerability \(CVE-2024-1135,||g" \
-e "s|\[GHSA-w3h3-4rj7-4ph4\]\(https://github.com/advisories/GHSA-w3h3-4rj7-4ph4\)\).||g" \
-e "s|There are several breaking changes noted in the Gunicorn changelog.||g" \
docs/changelog.md
sed -Ei -z "s|\n\n\n||g" docs/changelog.md
- name: Format changelog with Prettier
run: npx -s -y prettier@'^3.4' --write CHANGELOG.md docs/changelog.md
- name: Create pull request with updated changelog
Expand Down

0 comments on commit fe755da

Please sign in to comment.