-
Notifications
You must be signed in to change notification settings - Fork 2
Create scorecards.yml #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c3c2570
632a61f
dd6b74c
60b2850
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,53 @@ | ||
# Add 'Multicast' label to any root file changes | ||
Multicast: | ||
- setup.py | ||
- multicast/*.py | ||
# Add 'Python Repo' label to any root file changes | ||
Python Repo: | ||
- changed-files: | ||
- any-glob-to-any-file: 'setup.py' | ||
- any-glob-to-any-file: 'pythonrepo/*.py' | ||
|
||
# Add 'Lint' label to any lint file changes | ||
Linter: | ||
- .stickler.yml | ||
- .hound.yml | ||
- .yamllint.conf | ||
- .flake8.ini | ||
- .deepsource.toml | ||
- tests/check_* | ||
- changed-files: | ||
- any-glob-to-any-file: '.stickler.yml' | ||
- any-glob-to-any-file: '.hound.yml' | ||
- any-glob-to-any-file: '.yamllint.conf' | ||
- any-glob-to-any-file: '.flake8.ini' | ||
- any-glob-to-any-file: '.deepsource.toml' | ||
- any-glob-to-any-file: 'tests/check_*' | ||
Comment on lines
+10
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 Perhaps this could be one entry as an array like |
||
|
||
# Add 'Lang' label to any python file changes | ||
Python Lang: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is unclear if the whitespace here needs quoted from the docs: |
||
- **/*.py | ||
- *.py | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.py' | ||
- any-glob-to-any-file: '*.py' | ||
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 Perhaps this could be one entry as an array like [ ..., ..., ] style. |
||
|
||
Configs: | ||
- *.yml | ||
- ./**/*.yml | ||
- *.ini | ||
- *.toml | ||
- *.cfg | ||
- requirements.txt | ||
- changed-files: | ||
- any-glob-to-any-file: '*.yml' | ||
- any-glob-to-any-file: './**/*.yml' | ||
- any-glob-to-any-file: '*.ini' | ||
- any-glob-to-any-file: '*.toml' | ||
- any-glob-to-any-file: '*.cfg' | ||
- any-glob-to-any-file: 'requirements.txt' | ||
Comment on lines
+25
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 Perhaps this could be one entry as an array like [ ..., ..., ] style. |
||
|
||
# Add 'test' label | ||
Testing: | ||
- tests/**/*.py | ||
- tests/* | ||
- .circleci/* | ||
- changed-files: | ||
- any-glob-to-any-file: 'tests/**/*.py' | ||
- any-glob-to-any-file: 'tests/*' | ||
- any-glob-to-any-file: '.circleci/*' | ||
Comment on lines
+35
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 Perhaps this could be one entry as an array like [ ..., ..., ] style. |
||
|
||
CI: | ||
- tests/*.py | ||
- .stickler.yml | ||
- .hound.yml | ||
- .travis.yml | ||
- .appveyor.yml | ||
- .github/workflows/* | ||
- .circleci/* | ||
- changed-files: | ||
- any-glob-to-any-file: 'tests/*.py' | ||
- any-glob-to-any-file: '.stickler.yml' | ||
- any-glob-to-any-file: '.hound.yml' | ||
- any-glob-to-any-file: '.travis.yml' | ||
- any-glob-to-any-file: '.appveyor.yml' | ||
- any-glob-to-any-file: '.github/workflows/*' | ||
- any-glob-to-any-file: '.circleci/*' | ||
Comment on lines
+41
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 Perhaps this could be one entry as an array like [ ..., ..., ] style. |
||
|
||
Github: | ||
- .github/**/* | ||
- .github/* | ||
- README.md | ||
- changed-files: | ||
- any-glob-to-any-file: '.github/**/*' | ||
- any-glob-to-any-file: '.github/*' | ||
- any-glob-to-any-file: 'README.md' | ||
Comment on lines
+51
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 Perhaps this could be one entry as an array like [ ..., ..., ] style. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
schedule: | ||
- cron: '18 9 * * 5' | ||
push: | ||
branches: [ "master" ] | ||
branches: [ master ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 This seems to have fixed issue #38 🎉 |
||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
@@ -27,8 +27,8 @@ jobs: | |
# Needed to publish results and get a badge (see publish_results below). | ||
id-token: write | ||
# Uncomment the permissions below if installing in a private repository. | ||
# contents: read | ||
# actions: read | ||
contents: read | ||
actions: read | ||
|
||
steps: | ||
- name: "Checkout code" | ||
|
@@ -46,7 +46,6 @@ jobs: | |
# - you are installing Scorecard on a *private* repository | ||
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional. | ||
repo_token: ${{ secrets.SCORECARD_TOKEN }} | ||
|
||
# Public repositories: | ||
# - Publish results to OpenSSF REST API for easy access by consumers | ||
# - Allows the repository to include the Scorecard badge. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is unclear if the whitespace here needs quoted from the docs: