Skip to content

chore: regroup advisories by year #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
# Remove the begining of the README to extract the example.
(echo '```toml'; sed -e '1,/```toml/d' README.md) > EXAMPLE_README.md
while read FILE ; do
[ "$(dirname "$FILE")" != advisories/reserved ] || continue
echo -n "$FILE: "
docker run --rm -v $PWD:/repo --workdir /repo haskell/hsec-tools:latest /bin/hsec-tools check "$FILE" || RESULT=1
done < <(find advisories EXAMPLE_README.md EXAMPLE_ADVISORY.md -type f -name "*.md")
done < <(find advisories/published EXAMPLE_README.md EXAMPLE_ADVISORY.md -type f -name "*.md")
exit $RESULT
- name: Run advisory uniqueness checks
run: |
! find advisories -type f -name '*.md' -print0 \
| xargs -0n1 basename | sort | uniq -c | grep -E -v '[[:space:]]*1 '
! find advisories/published -type f -name '*.md' \
| sed -E 's|.*/([0-9]+)/([0-9]+)\.md|\1/\2.md|' \
| sort | uniq -c | grep -E -v '[[:space:]]*1 '
- name: Generate OSV data
run: |
DATA_DIR=$PWD/osv
Expand All @@ -58,7 +58,7 @@ jobs:
YEAR=$(echo "$ID" | cut -d - -f 2)
mkdir -p $DATA_DIR/$YEAR
docker run --rm -v $PWD:/repo --workdir /repo haskell/hsec-tools:latest /bin/hsec-tools osv "$FILE" > $DATA_DIR/$YEAR/$ID.json
done < <(find advisories -type f -name "*.md" | grep -v '^advisories/reserved/')
done < <(find advisories/published -type f -name "*.md")
- name: Validate OSV data
run: |
curl -OL https://raw.githubusercontent.com/ossf/osv-schema/refs/heads/main/validation/schema.json
Expand All @@ -84,7 +84,7 @@ jobs:
- name: Generate snapshot data
run: |
docker run --rm -v $PWD:/repo --workdir /repo haskell/hsec-tools:latest /bin/hsec-tools generate-snapshot . snapshot
diff -r advisories snapshot/advisories | grep -v gitkeep | grep -v 'Only in advisories: reserved' | grep Only && echo 'Some advisories have been created/deleted' && exit 1 || exit 0
diff -r advisories/published snapshot/advisories/published | grep -v gitkeep | grep Only && echo 'Some advisories have been created/deleted' && exit 1 || exit 0
- name: Publish snapshot data
if: ${{ github.event_name == 'push' && github.ref_name == 'main' && github.repository == 'haskell/security-advisories' }}
env:
Expand Down
36 changes: 0 additions & 36 deletions advisories/ghc/ghc/HSEC-2024-0007.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/ghc/ghc/HSEC-2024-0007.md
35 changes: 0 additions & 35 deletions advisories/ghc/ghc/HSEC-2024-0008.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/ghc/ghc/HSEC-2024-0008.md
32 changes: 0 additions & 32 deletions advisories/ghc/ghc/HSEC-2025-0001.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/ghc/ghc/HSEC-2025-0001.md
34 changes: 0 additions & 34 deletions advisories/hackage/aeson/HSEC-2023-0001.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/hackage/aeson/HSEC-2023-0001.md
78 changes: 0 additions & 78 deletions advisories/hackage/base/HSEC-2023-0007.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/hackage/base/HSEC-2023-0007.md
41 changes: 0 additions & 41 deletions advisories/hackage/base/HSEC-2024-0006.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/hackage/base/HSEC-2024-0006.md
31 changes: 0 additions & 31 deletions advisories/hackage/biscuit-haskell/HSEC-2023-0002.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/hackage/biscuit-haskell/HSEC-2023-0002.md
30 changes: 0 additions & 30 deletions advisories/hackage/biscuit-haskell/HSEC-2024-0009.md

This file was deleted.

1 change: 1 addition & 0 deletions advisories/hackage/biscuit-haskell/HSEC-2024-0009.md
2 changes: 1 addition & 1 deletion advisories/hackage/bz2/HSEC-2024-0002.md
2 changes: 1 addition & 1 deletion advisories/hackage/bzlib-conduit/HSEC-2024-0002.md
Loading