Skip to content

Commit b924e54

Browse files
authored
Merge pull request #48 from fosslight/develop
Modify to run github action for all branches when PR is created.
2 parents 13b3bcd + 8fcacbc commit b924e54

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/pull-request.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ name: Pull requests fosslight_util
44

55
on:
66
pull_request:
7-
branches: [ main ]
7+
branches:
8+
- '*'
89

910
jobs:
1011
build:

src/fosslight_util/write_opossum.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ def get_externalAttribution_dict(self):
116116
dict[licenseName] = self.licenseName
117117
dict[preSelected] = self.preSelected
118118

119-
if self.source_name == FL_SOURCE:
120-
dict[copyright] = self.copyright
121-
elif self.source_name == FL_BINARY:
119+
if self.source_name == FL_SOURCE or FL_BINARY:
122120
dict[copyright] = self.copyright
123121
dict[packageName] = self.packageName
124122
dict[packageVersion] = self.packageVersion
@@ -264,7 +262,7 @@ def make_resources_and_attributions(sheet_items, scanner, resources, fc_list):
264262
if scanner == FL_SOURCE:
265263
if (os.path.join(os.sep, path) + os.sep) not in fc_list:
266264
resources = make_resources(path, resources)
267-
attribution = Attribution(scanner, license, exclude, copyright)
265+
attribution = Attribution(scanner, license, exclude, copyright, oss_name, oss_version, url)
268266
elif scanner == FL_BINARY:
269267
resources = make_resources(path, resources)
270268
attribution = Attribution(scanner, license, exclude, copyright, oss_name, oss_version, url)

0 commit comments

Comments
 (0)