diff --git a/spdx/README.md b/spdx/README.md index 57827b6..4a6b17a 100644 --- a/spdx/README.md +++ b/spdx/README.md @@ -5,12 +5,12 @@ The intention is to be able to use it for checking files changed in a PR. ## How to use -Please see [check_license.yaml](https://github.com/eclipse/kuksa.val/blob/master/.github/workflows/check_license.yaml) for an example on how to use the action to verify +Please see [check_license.yml](https://github.com/eclipse-kuksa/kuksa-python-sdk/blob/main/.github/workflows/check_license.yml) for an example on how to use the action to verify that files modified in a Pull Request has an SPDX license identifier. It shall be possible to use this action from other repositories by referencing: -`- uses: eclipse-kuksa/kuksa-actions/spdx@master` +`- uses: eclipse-kuksa/kuksa-actions/spdx@2` If you accept multiple licenses it can be specified like: diff --git a/spdx/verify-spdx-headers b/spdx/verify-spdx-headers index fa7a09c..e507166 100755 --- a/spdx/verify-spdx-headers +++ b/spdx/verify-spdx-headers @@ -62,6 +62,7 @@ class Index: '.hh': 'c++', '.kt': 'c++', '.java': 'c++', + '.go': 'golang', } def __init__(self): @@ -73,6 +74,7 @@ class Index: 'ruby': Language('#+', shebang=True), 'c': Language('//+', '.*', ('/\\*', '\\*/')), 'c++': Language('//+', '.*', ('/\\*', '\\*/')), + 'golang': Language('//+', '.*', ('/\\*', '\\*/')), 'rust': Language('//+', '.*', '//!', ('/\\*', '\\*/')), 'protobuf': Language('//+', '//!', '.*', ('/\\*', '\\*/')), }