Skip to content

Commit e52f5b5

Browse files
blackheavenfrasertweedale
authored andcommitted
fix(ci): adapt publish osv data (path)
1 parent f8608ef commit e52f5b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/check-advisories.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
(echo '```toml'; sed -e '1,/```toml/d' README.md) > EXAMPLE_README.md
4949
while read FILE ; do
5050
echo -n "$FILE: "
51-
docker run --rm -v $PWD:/advisories haskell/hsec-tools:latest /bin/hsec-tools check "advisories/$FILE" || RESULT=1
51+
docker run --rm -v ${{ github.workspace }}:/repo haskell/hsec-tools:latest /bin/hsec-tools check "repo/$FILE" || RESULT=1
5252
done < <([ ${#CHANGED_ADVISORIES[@]} -gt 0 ] && printf "%s\n" "${CHANGED_ADVISORIES[@]}" || find advisories EXAMPLE_README.md EXAMPLE_ADVISORY.md -type f -name "*.md")
5353
exit $RESULT
5454
- name: Run advisory uniqueness checks
@@ -67,7 +67,7 @@ jobs:
6767
ID=$(basename "$FILE" .md)
6868
YEAR=$(echo "$ID" | cut -d - -f 2)
6969
mkdir -p $DATA_DIR/$YEAR
70-
docker run --rm -v $PWD:/advisories haskell/hsec-tools:latest /bin/hsec-tools osv "$FILE" > $DATA_DIR/$YEAR/$ID.json
70+
docker run --rm -v ${{ github.workspace }}:/repo haskell/hsec-tools:latest /bin/hsec-tools osv "repo/$FILE" > $DATA_DIR/$YEAR/$ID.json
7171
done < <(find advisories -type f -name "*.md")
7272
BRANCH=generated/osv-export
7373
REF=refs/remotes/origin/$BRANCH

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"GIT_DISCOVERY_ACROSS_FILESYSTEM=1"
7373
];
7474
Volumes = {
75-
"/advisories" = { };
75+
"/repo" = { };
7676
};
7777
WorkDir = "/";
7878
};

0 commit comments

Comments
 (0)