forked from CycloneDX/cyclonedx.org-archived
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into syft-bitbucket-pipe
Signed-off-by: Jan Kowalleck <jan.kowalleck@owasp.org>
- Loading branch information
Showing
7 changed files
with
105 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: validate tools yaml | ||
|
||
on: | ||
pull_request: | ||
paths: ["_data/tools.yml"] | ||
push: | ||
paths: ["_data/tools.yml"] | ||
workflow_dispatch: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
lint-yaml: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: install yamale | ||
run: pip install 'yamale>=5.2.1,<6' | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: lint tools yaml | ||
run: yamale -s _data/.schema/tools.schema.yaml _data/tools.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# yamale schema syntax: https://github.com/23andMe/Yamale#schema | ||
list(include('tool')) | ||
|
||
--- | ||
|
||
tool: | ||
name: str() | ||
publisher: str() | ||
description: str() # all after 250 chars is truncated | ||
repoUrl: str(required=False) | ||
websiteUrl: str(matches='^https?://.+') | ||
categories: list(include('category')) | ||
|
||
# see _data/tool-categories.yml | ||
category: > | ||
enum( | ||
'opensource', | ||
'proprietary', | ||
'build-integration', | ||
'analysis', | ||
'author', | ||
'github-action', | ||
'github-app', | ||
'transform', | ||
'library', | ||
'signing-notary', | ||
'distribute' | ||
) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.