Skip to content

Commit

Permalink
Merge pull request #12507 from openSUSE/slsaprovenance_via_bsconfig
Browse files Browse the repository at this point in the history
[backend] configure slsaprovenance via BSConfig instead of buildconfig
  • Loading branch information
mlschroe committed Apr 29, 2022
2 parents a1b8cf5 + 9942554 commit 452d21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSSched/BuildJob.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ sub create {
'repository' => $releasetarget->{'repository'} };

}
$binfo->{'slsaprovenance'} = $bconf->{'buildflags:slsaprovenance'} if $bconf->{'buildflags:slsaprovenance'};
$binfo->{'slsaprovenance'} = 1 if $BSConfig::slsaprovenance && grep { $prp =~ /^$_/} @$BSConfig::slsaprovenance;
if ($binfo->{'slsaprovenance'}) {
if ($BSConfig::sourcepublish_downloadurl) {
$binfo->{'slsadownloadurl'} = "$BSConfig::sourcepublish_downloadurl/_slsa";
Expand Down

0 comments on commit 452d21f

Please sign in to comment.