File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 56
56
! find source/advisories -type f -name '*.md' -print0 \
57
57
| xargs -0n1 basename | sort | uniq -c | grep -E -v '[[:space:]]*1 '
58
58
- 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' }}
60
60
env :
61
61
GITHUB_SHA : ${{ github.sha }}
62
62
run : |
67
67
ID=$(basename "$FILE" .md)
68
68
YEAR=$(echo "$ID" | cut -d - -f 2)
69
69
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
71
71
done < <(find advisories -type f -name "*.md")
72
72
BRANCH=generated/osv-export
73
73
REF=refs/remotes/origin/$BRANCH
You can’t perform that action at this time.
0 commit comments