Skip to content

Commit

Permalink
Merge pull request #48 from fosslight/develop
Browse files Browse the repository at this point in the history
Modify to run github action for all branches when PR is created.
  • Loading branch information
soimkim authored Jan 13, 2022
2 parents 13b3bcd + 8fcacbc commit b924e54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ name: Pull requests fosslight_util

on:
pull_request:
branches: [ main ]
branches:
- '*'

jobs:
build:
Expand Down
6 changes: 2 additions & 4 deletions src/fosslight_util/write_opossum.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ def get_externalAttribution_dict(self):
dict[licenseName] = self.licenseName
dict[preSelected] = self.preSelected

if self.source_name == FL_SOURCE:
dict[copyright] = self.copyright
elif self.source_name == FL_BINARY:
if self.source_name == FL_SOURCE or FL_BINARY:
dict[copyright] = self.copyright
dict[packageName] = self.packageName
dict[packageVersion] = self.packageVersion
Expand Down Expand Up @@ -264,7 +262,7 @@ def make_resources_and_attributions(sheet_items, scanner, resources, fc_list):
if scanner == FL_SOURCE:
if (os.path.join(os.sep, path) + os.sep) not in fc_list:
resources = make_resources(path, resources)
attribution = Attribution(scanner, license, exclude, copyright)
attribution = Attribution(scanner, license, exclude, copyright, oss_name, oss_version, url)
elif scanner == FL_BINARY:
resources = make_resources(path, resources)
attribution = Attribution(scanner, license, exclude, copyright, oss_name, oss_version, url)
Expand Down

0 comments on commit b924e54

Please sign in to comment.