File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 48
48
(echo '```toml'; sed -e '1,/```toml/d' README.md) > EXAMPLE_README.md
49
49
while read FILE ; do
50
50
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
52
52
done < <([ ${#CHANGED_ADVISORIES[@]} -gt 0 ] && printf "%s\n" "${CHANGED_ADVISORIES[@]}" || find advisories EXAMPLE_README.md EXAMPLE_ADVISORY.md -type f -name "*.md")
53
53
exit $RESULT
54
54
- name : Run advisory uniqueness checks
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 $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
71
71
done < <(find advisories -type f -name "*.md")
72
72
BRANCH=generated/osv-export
73
73
REF=refs/remotes/origin/$BRANCH
Original file line number Diff line number Diff line change 72
72
"GIT_DISCOVERY_ACROSS_FILESYSTEM=1"
73
73
] ;
74
74
Volumes = {
75
- "/advisories " = { } ;
75
+ "/repo " = { } ;
76
76
} ;
77
77
WorkDir = "/" ;
78
78
} ;
You can’t perform that action at this time.
0 commit comments