File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 31
31
check-advisories :
32
32
name : Invoke check-advisories workflow
33
33
needs : [tools_changed, advisories_changed]
34
- if : ${{ needs.tools_changed.outputs.should_skip == 'true' && needs.advisories_changed.outputs.should_skip != 'true' }}
34
+ if : ${{ needs.tools_changed.outputs.should_skip == 'true' && needs.advisories_changed.outputs.should_skip != 'true' }}
35
35
uses : ./.github/workflows/check-advisories.yml
36
36
with :
37
37
artifact-name : hsec-tools-main
38
+ changed-advisories : ${{ toJSON(needs.advisories_changed.outputs.changed_files) }}
Original file line number Diff line number Diff line change 5
5
artifact-name :
6
6
required : true
7
7
type : string
8
+ changed-advisoriese :
9
+ required : false
10
+ type : string
11
+ default : ' []'
8
12
jobs :
9
13
check-advisories :
10
14
runs-on : ubuntu-20.04
23
27
path : ~/.local/bin
24
28
- run : chmod +x ~/.local/bin/hsec-tools
25
29
- name : Run advisory syntax checks
30
+ env :
31
+ CHANGED_ADVISORIES : ${{ fromJSON(inputs.changed-advisories) }}
26
32
run : |
27
33
cd source
28
34
RESULT=0
31
37
while read FILE ; do
32
38
echo -n "$FILE: "
33
39
hsec-tools check "$FILE" || RESULT=1
34
- done < <(find advisories EXAMPLE_README.md EXAMPLE_ADVISORY.md -type f -name "*.md")
40
+ done < <([ ${#CHANGED_ADVISORIES[@]} -gt 0 ] && echo $CHANGED_ADVISORIES || find advisories EXAMPLE_README.md EXAMPLE_ADVISORY.md -type f -name "*.md")
35
41
exit $RESULT
36
42
- name : Run advisory uniqueness checks
37
43
run : |
You can’t perform that action at this time.
0 commit comments