File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 94
94
echo "benchmark=$(yq eval '.benchmark // "false"' $CONFIG_FILE)" >> $GITHUB_ENV
95
95
fi
96
96
97
+ - name : Check for gold standard
98
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
99
+ run : |
100
+ # only analyze vulnerabilities if a gold standard is present
101
+ if [ -d "benchmark/${{ matrix.directory }}/model_gs" ]; then
102
+ echo "analyze_vulnerabilities=${{ github.event.inputs.analyzeVulnerabilities }}" >> $GITHUB_ENV
103
+ else
104
+ echo "analyze_vulnerabilities="false"" >> $GITHUB_ENV
105
+ fi
106
+
97
107
- name : Checkout repositories
98
108
if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
99
109
run : |
@@ -111,7 +121,7 @@ jobs:
111
121
with :
112
122
source_path : repo/${{ matrix.directory }}
113
123
rules : ${{ env.rules }}
114
- analyze_vulnerabilities : ${{ github.event.inputs.analyzeVulnerabilities }}
124
+ analyze_vulnerabilities : ${{ env.analyze_vulnerabilities }}
115
125
snyk_token : ${{ secrets.SNYK_TOKEN }}
116
126
nist_nvd_token : ${{ secrets.NVD_TOKEN }}
117
127
benchmark : ${{ env.benchmark }}
You can’t perform that action at this time.
0 commit comments