Skip to content

Commit 950e1fa

Browse files
ci: fix docker command for osv export
1 parent e52f5b5 commit 950e1fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-advisories.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
! find source/advisories -type f -name '*.md' -print0 \
5757
| xargs -0n1 basename | sort | uniq -c | grep -E -v '[[:space:]]*1 '
5858
- name: Publish OSV data
59-
if: ${{ github.event_name == 'push' && github.ref_name == 'main' && github.repository == 'haskell/security-advisories' }}
59+
if: ${{ github.event_name == 'push' }}
6060
env:
6161
GITHUB_SHA: ${{ github.sha }}
6262
run: |
@@ -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 ${{ github.workspace }}:/repo haskell/hsec-tools:latest /bin/hsec-tools osv "repo/$FILE" > $DATA_DIR/$YEAR/$ID.json
70+
docker run --rm -v ${{ github.workspace }}:/repo --workdir /repo haskell/hsec-tools:latest /bin/hsec-tools osv "$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

0 commit comments

Comments
 (0)