Giter VIP home page Giter VIP logo

spdx's Introduction



Test Status Bug Status Maintenance Status Coverage Status

Enarx

This crate provides the enarx command-line tool for running applications inside Trusted Execution Environments (TEEs) using technologies such as Intel SGX and AMD SEV-SNP.

For more information about Enarx, please visit the Enarx project website.

For a quick introduction to Enarx and its goals, please see our Getting Started Guide, and for a more in-depth look please see our Technical Overview.

Using Enarx

For instructions on installing the Enarx command-line tool, please see our Quick Installation Guide.

For instructions on how to build an application that can be run within Enarx, please see our WebAssembly Guide.

Contributing to Enarx

For instructions on how to build and contribute to Enarx, please see our Contributing Guide.

For an overview of the codebase, please see our Repo Guide.

spdx's People

Contributors

bstrie avatar clemenslinnhoff avatar haraldh avatar mbestavros avatar npmccallum avatar warthog9 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spdx's Issues

Make a table for filetypes

Something like this:

{
  "rs": {
    "shebang": False,
    "comment": ["//", "/*"],
  },
  "py": {
    "shebang": True,
    "comment": ["#"],
  }
}

Unexpected input(s) 'extensions', valid inputs are ['licenses'] (warning fails CI)

edit: Here's the PR it showed up on, in case it is culpable.

Relevant log 2021-07-19T21:36:40.4546247Z Found online and idle hosted runner(s) in the current repository's organization account that matches the required labels: 'ubuntu-latest' 2021-07-19T21:36:40.4546316Z Waiting for a hosted runner in 'organization' to pick this job... 2021-07-19T21:36:46.9130490Z Current runner version: '2.278.0' 2021-07-19T21:36:46.9159025Z ##[group]Operating System 2021-07-19T21:36:46.9159972Z Ubuntu 2021-07-19T21:36:46.9160475Z 20.04.2 2021-07-19T21:36:46.9160882Z LTS 2021-07-19T21:36:46.9161430Z ##[endgroup] 2021-07-19T21:36:46.9161982Z ##[group]Virtual Environment 2021-07-19T21:36:46.9162649Z Environment: ubuntu-20.04 2021-07-19T21:36:46.9163181Z Version: 20210712.0 2021-07-19T21:36:46.9164202Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20210712.0/images/linux/Ubuntu2004-README.md 2021-07-19T21:36:46.9165570Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210712.0 2021-07-19T21:36:46.9166537Z ##[endgroup] 2021-07-19T21:36:46.9168475Z ##[group]GITHUB_TOKEN Permissions 2021-07-19T21:36:46.9169770Z Actions: read 2021-07-19T21:36:46.9170311Z Checks: read 2021-07-19T21:36:46.9170861Z Contents: read 2021-07-19T21:36:46.9171368Z Deployments: read 2021-07-19T21:36:46.9172020Z Discussions: read 2021-07-19T21:36:46.9172598Z Issues: read 2021-07-19T21:36:46.9173174Z Metadata: read 2021-07-19T21:36:46.9173839Z Packages: read 2021-07-19T21:36:46.9174383Z PullRequests: read 2021-07-19T21:36:46.9174985Z RepositoryProjects: read 2021-07-19T21:36:46.9175617Z SecurityEvents: read 2021-07-19T21:36:46.9176165Z Statuses: read 2021-07-19T21:36:46.9176810Z ##[endgroup] 2021-07-19T21:36:46.9179753Z Prepare workflow directory 2021-07-19T21:36:46.9927115Z Prepare all required actions 2021-07-19T21:36:46.9939680Z Getting action download info 2021-07-19T21:36:47.4260508Z Download action repository 'actions/checkout@v2' 2021-07-19T21:36:49.3759423Z Download action repository 'enarx/spdx@master' 2021-07-19T21:36:49.6999357Z ##[group]Run actions/checkout@v2 2021-07-19T21:36:49.7000129Z with: 2021-07-19T21:36:49.7000578Z repository: enarx/snp 2021-07-19T21:36:49.7001804Z token: *** 2021-07-19T21:36:49.7002258Z ssh-strict: true 2021-07-19T21:36:49.7003028Z persist-credentials: true 2021-07-19T21:36:49.7003783Z clean: true 2021-07-19T21:36:49.7004654Z fetch-depth: 1 2021-07-19T21:36:49.7005381Z lfs: false 2021-07-19T21:36:49.7005999Z submodules: false 2021-07-19T21:36:49.7006722Z ##[endgroup] 2021-07-19T21:36:49.9505849Z Syncing repository: enarx/snp 2021-07-19T21:36:49.9520562Z ##[group]Getting Git version info 2021-07-19T21:36:49.9521814Z Working directory is '/home/runner/work/snp/snp' 2021-07-19T21:36:49.9590914Z [command]/usr/bin/git version 2021-07-19T21:36:49.9735504Z git version 2.32.0 2021-07-19T21:36:49.9764126Z ##[endgroup] 2021-07-19T21:36:49.9771086Z Deleting the contents of '/home/runner/work/snp/snp' 2021-07-19T21:36:49.9774895Z ##[group]Initializing the repository 2021-07-19T21:36:49.9779094Z [command]/usr/bin/git init /home/runner/work/snp/snp 2021-07-19T21:36:49.9886614Z hint: Using 'master' as the name for the initial branch. This default branch name 2021-07-19T21:36:49.9887840Z hint: is subject to change. To configure the initial branch name to use in all 2021-07-19T21:36:49.9888948Z hint: of your new repositories, which will suppress this warning, call: 2021-07-19T21:36:50.0106782Z hint: 2021-07-19T21:36:50.0116356Z hint: git config --global init.defaultBranch 2021-07-19T21:36:50.0117982Z hint: 2021-07-19T21:36:50.0119761Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2021-07-19T21:36:50.0131086Z hint: 'development'. The just-created branch can be renamed via this command: 2021-07-19T21:36:50.0133196Z hint: 2021-07-19T21:36:50.0134583Z hint: git branch -m 2021-07-19T21:36:50.0136280Z Initialized empty Git repository in /home/runner/work/snp/snp/.git/ 2021-07-19T21:36:50.0138072Z [command]/usr/bin/git remote add origin https://github.com/enarx/snp 2021-07-19T21:36:50.0139554Z ##[endgroup] 2021-07-19T21:36:50.0140883Z ##[group]Disabling automatic garbage collection 2021-07-19T21:36:50.0142482Z [command]/usr/bin/git config --local gc.auto 0 2021-07-19T21:36:50.0144759Z ##[endgroup] 2021-07-19T21:36:50.0148770Z ##[group]Setting up auth 2021-07-19T21:36:50.0151805Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2021-07-19T21:36:50.0154867Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2021-07-19T21:36:50.0574914Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2021-07-19T21:36:50.0605171Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2021-07-19T21:36:50.0826038Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2021-07-19T21:36:50.0876566Z ##[endgroup] 2021-07-19T21:36:50.0877716Z ##[group]Fetching the repository 2021-07-19T21:36:50.0887893Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +718b42a61942bd345b0dc531c480f8b059663d83:refs/remotes/pull/2/merge 2021-07-19T21:36:50.3543843Z remote: Enumerating objects: 15, done. 2021-07-19T21:36:50.3544713Z remote: Counting objects: 6% (1/15) 2021-07-19T21:36:50.3545462Z remote: Counting objects: 13% (2/15) 2021-07-19T21:36:50.3546252Z remote: Counting objects: 20% (3/15) 2021-07-19T21:36:50.3547026Z remote: Counting objects: 26% (4/15) 2021-07-19T21:36:50.3547731Z remote: Counting objects: 33% (5/15) 2021-07-19T21:36:50.3548452Z remote: Counting objects: 40% (6/15) 2021-07-19T21:36:50.3549351Z remote: Counting objects: 46% (7/15) 2021-07-19T21:36:50.3550465Z remote: Counting objects: 53% (8/15) 2021-07-19T21:36:50.3551186Z remote: Counting objects: 60% (9/15) 2021-07-19T21:36:50.3551888Z remote: Counting objects: 66% (10/15) 2021-07-19T21:36:50.3552609Z remote: Counting objects: 73% (11/15) 2021-07-19T21:36:50.3553325Z remote: Counting objects: 80% (12/15) 2021-07-19T21:36:50.3554244Z remote: Counting objects: 86% (13/15) 2021-07-19T21:36:50.3554938Z remote: Counting objects: 93% (14/15) 2021-07-19T21:36:50.3555837Z remote: Counting objects: 100% (15/15) 2021-07-19T21:36:50.3558813Z remote: Counting objects: 100% (15/15), done. 2021-07-19T21:36:50.3559910Z remote: Compressing objects: 7% (1/13) 2021-07-19T21:36:50.3560867Z remote: Compressing objects: 15% (2/13) 2021-07-19T21:36:50.3561865Z remote: Compressing objects: 23% (3/13) 2021-07-19T21:36:50.3562715Z remote: Compressing objects: 30% (4/13) 2021-07-19T21:36:50.3563557Z remote: Compressing objects: 38% (5/13) 2021-07-19T21:36:50.3564496Z remote: Compressing objects: 46% (6/13) 2021-07-19T21:36:50.3565238Z remote: Compressing objects: 53% (7/13) 2021-07-19T21:36:50.3565998Z remote: Compressing objects: 61% (8/13) 2021-07-19T21:36:50.3566755Z remote: Compressing objects: 69% (9/13) 2021-07-19T21:36:50.3567516Z remote: Compressing objects: 76% (10/13) 2021-07-19T21:36:50.3568282Z remote: Compressing objects: 84% (11/13) 2021-07-19T21:36:50.3569140Z remote: Compressing objects: 92% (12/13) 2021-07-19T21:36:50.3569915Z remote: Compressing objects: 100% (13/13) 2021-07-19T21:36:50.3570699Z remote: Compressing objects: 100% (13/13), done. 2021-07-19T21:36:50.3572159Z remote: Total 15 (delta 0), reused 11 (delta 0), pack-reused 0 2021-07-19T21:36:50.3573069Z From https://github.com/enarx/snp 2021-07-19T21:36:50.3574582Z * [new ref] 718b42a61942bd345b0dc531c480f8b059663d83 -> pull/2/merge 2021-07-19T21:36:50.3575875Z ##[endgroup] 2021-07-19T21:36:50.3576994Z ##[group]Determining the checkout info 2021-07-19T21:36:50.3577700Z ##[endgroup] 2021-07-19T21:36:50.3578383Z ##[group]Checking out the ref 2021-07-19T21:36:50.3579680Z [command]/usr/bin/git checkout --progress --force refs/remotes/pull/2/merge 2021-07-19T21:36:50.3581262Z Note: switching to 'refs/remotes/pull/2/merge'. 2021-07-19T21:36:50.3581813Z 2021-07-19T21:36:50.3582784Z You are in 'detached HEAD' state. You can look around, make experimental 2021-07-19T21:36:50.3583731Z changes and commit them, and you can discard any commits you make in this 2021-07-19T21:36:50.3584832Z state without impacting any branches by switching back to a branch. 2021-07-19T21:36:50.3585414Z 2021-07-19T21:36:50.3586506Z If you want to create a new branch to retain commits you create, you may 2021-07-19T21:36:50.3587697Z do so (now or later) by using -c with the switch command. Example: 2021-07-19T21:36:50.3588662Z 2021-07-19T21:36:50.3589892Z git switch -c 2021-07-19T21:36:50.3590426Z 2021-07-19T21:36:50.3591041Z Or undo this operation with: 2021-07-19T21:36:50.3591499Z 2021-07-19T21:36:50.3592204Z git switch - 2021-07-19T21:36:50.3592649Z 2021-07-19T21:36:50.3593464Z Turn off this advice by setting config variable advice.detachedHead to false 2021-07-19T21:36:50.3594135Z 2021-07-19T21:36:50.3595258Z HEAD is now at 718b42a Merge cc1d5cb752d5d1da28faebf4ce88ccb7ff97ce4d into ae6f2c01033bec1c504ffe6b667a9fa311693b82 2021-07-19T21:36:50.3596965Z ##[endgroup] 2021-07-19T21:36:50.3598617Z [command]/usr/bin/git log -1 --format='%H' 2021-07-19T21:36:50.3599837Z '718b42a61942bd345b0dc531c480f8b059663d83' 2021-07-19T21:36:50.3736840Z ##[warning]Unexpected input(s) 'extensions', valid inputs are ['licenses'] 2021-07-19T21:36:50.3771872Z ##[group]Run enarx/spdx@master 2021-07-19T21:36:50.3773451Z with: 2021-07-19T21:36:50.3774074Z extensions: { \"rs\": [\"Apache-2.0\"] }

2021-07-19T21:36:50.3774689Z ##[endgroup]
2021-07-19T21:36:50.4441280Z Apache-2.0 ./src/lib.rs
2021-07-19T21:36:50.4449018Z ##[error]Process completed with exit code 123.
2021-07-19T21:36:50.4555494Z Post job cleanup.
2021-07-19T21:36:50.6494161Z [command]/usr/bin/git version
2021-07-19T21:36:50.6494873Z git version 2.32.0
2021-07-19T21:36:50.6498367Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2021-07-19T21:36:50.6500168Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-07-19T21:36:50.6501785Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2021-07-19T21:36:50.6502841Z http.https://github.com/.extraheader
2021-07-19T21:36:50.6504104Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2021-07-19T21:36:50.6506050Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-07-19T21:36:50.6524127Z Cleaning up orphan processes

[Bug]: SPDX identifier in C++ file not recognized

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Current Behaviour

I an SPDX identifier is located in a multi line header at the beginning of a C++ file, it is not recognized by the Github action.

Here is a sample:

/*
 * Copyright 2022 XYZ
 * SPDX-License-Identifier: MPL-2.0
*/

Expected Behaviour

I would expect the identifier to be recognized an the Github action not to throw an error.

The solution would probably be to add * here.

Environment Information

Used in a standard Github action.

Steps To Reproduce

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.