Skip to content

Commit 2b8730a

Browse files
Merge branch 'score-card-revert-patch' and 'labeler-patch' into temp-merge
* temp-merge Bumped Action versions and perms * labeler-patch: Cleanup Labeler config. Updated lables config for latest version. * score-card-revert-patch Revert to only check default branch to fix regression ( - Fixed #38 - ) Create scorecards.yml
2 parents 1d53595 + 29d4740 commit 2b8730a

File tree

4 files changed

+53
-40
lines changed

4 files changed

+53
-40
lines changed

.deepsource.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exclude_patterns = [
2323
"codecov_env",
2424
"*,cover",
2525
".hypothesis/",
26-
"docs/"
26+
"docs/conf.py"
2727
]
2828

2929
[[analyzers]]

.github/labeler.yml

Lines changed: 45 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,60 @@
1-
# Add 'Multicast' label to any root file changes
2-
Multicast:
3-
- setup.py
4-
- multicast/*.py
1+
# Add 'Python Repo' label to any root file changes
2+
Python Repo:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- setup.py
6+
- pythonrepo/*.py
57

68
# Add 'Lint' label to any lint file changes
79
Linter:
8-
- .stickler.yml
9-
- .hound.yml
10-
- .yamllint.conf
11-
- .flake8.ini
12-
- .deepsource.toml
13-
- tests/check_*
10+
- changed-files:
11+
- any-glob-to-any-file:
12+
- .stickler.yml
13+
- .hound.yml
14+
- .yamllint.conf
15+
- .flake8.ini
16+
- .deepsource.toml
17+
- tests/check_*
1418

1519
# Add 'Lang' label to any python file changes
1620
Python Lang:
17-
- **/*.py
18-
- *.py
21+
- changed-files:
22+
- any-glob-to-any-file:
23+
- '**/*.py'
24+
- '*.py'
1925

2026
Configs:
21-
- *.yml
22-
- ./**/*.yml
23-
- *.ini
24-
- *.toml
25-
- *.cfg
26-
- requirements.txt
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- '*.yml'
30+
- ./**/*.yml
31+
- '*.ini'
32+
- '*.toml'
33+
- '*.cfg'
34+
- requirements.txt
2735

2836
# Add 'test' label
2937
Testing:
30-
- tests/**/*.py
31-
- tests/*
32-
- .circleci/*
38+
- changed-files:
39+
- any-glob-to-any-file:
40+
- tests/**/*.py
41+
- tests/*
42+
- .circleci/*
3343

3444
CI:
35-
- tests/*.py
36-
- .stickler.yml
37-
- .hound.yml
38-
- .travis.yml
39-
- .appveyor.yml
40-
- .github/workflows/*
41-
- .circleci/*
45+
- changed-files:
46+
- any-glob-to-any-file:
47+
- tests/*.py
48+
- .stickler.yml
49+
- .hound.yml
50+
- .travis.yml
51+
- .appveyor.yml
52+
- .github/workflows/*
53+
- .circleci/*
4254

4355
Github:
44-
- .github/**/*
45-
- .github/*
46-
- README.md
56+
- changed-files:
57+
- any-glob-to-any-file:
58+
- .github/**/*
59+
- .github/*
60+
- README.md

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v1
45+
uses: github/codeql-action/init@v3
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v1
56+
uses: github/codeql-action/autobuild@v3
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v1
70+
uses: github/codeql-action/analyze@v3

.github/workflows/scorecards-analysis.yml renamed to .github/workflows/scorecards.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
schedule:
1313
- cron: '18 9 * * 5'
1414
push:
15-
branches: [ "master" ]
15+
branches: [ master ]
1616

1717
# Declare default permissions as read only.
1818
permissions: read-all
@@ -27,8 +27,8 @@ jobs:
2727
# Needed to publish results and get a badge (see publish_results below).
2828
id-token: write
2929
# Uncomment the permissions below if installing in a private repository.
30-
# contents: read
31-
# actions: read
30+
contents: read
31+
actions: read
3232

3333
steps:
3434
- name: "Checkout code"
@@ -46,7 +46,6 @@ jobs:
4646
# - you are installing Scorecard on a *private* repository
4747
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
4848
repo_token: ${{ secrets.SCORECARD_TOKEN }}
49-
5049
# Public repositories:
5150
# - Publish results to OpenSSF REST API for easy access by consumers
5251
# - Allows the repository to include the Scorecard badge.

0 commit comments

Comments
 (0)