Skip to content

Commit 496558a

Browse files
committed
linting updates
1 parent a948607 commit 496558a

24 files changed

+95
-61
lines changed

.github/workflows/add-labels-standardized.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
- opened
77
- reopened
88

9-
permissions:
10-
issues: write
9+
permissions: {}
1110

1211
jobs:
1312
add-issue-labels:
13+
permissions:
14+
issues: write
1415
secrets:
1516
ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
1617
SENZING_MEMBERS: ${{ secrets.SENZING_MEMBERS }}

.github/workflows/add-to-project-senzing-dependabot.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ on:
44
pull_request:
55
branches: [main]
66

7-
permissions:
8-
repository-projects: write
7+
permissions: {}
98

109
jobs:
1110
add-to-project-dependabot:
11+
permissions:
12+
repository-projects: write
1213
secrets:
1314
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
1415
uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v3

.github/workflows/add-to-project-senzing.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
- opened
77
- reopened
88

9-
permissions:
10-
repository-projects: write
9+
permissions: {}
1110

1211
jobs:
1312
add-to-project:
13+
permissions:
14+
repository-projects: write
1415
secrets:
1516
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
1617
uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v3

.github/workflows/bandit.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66
pull_request:
77
branches: [main]
88

9-
permissions:
10-
contents: read
11-
pull-requests: write
9+
permissions: {}
1210

1311
jobs:
1412
bandit:
13+
permissions:
14+
contents: read
15+
pull-requests: write
1516
runs-on: ubuntu-latest
1617
strategy:
1718
fail-fast: false
@@ -21,6 +22,8 @@ jobs:
2122
steps:
2223
- name: Checkout repository
2324
uses: actions/checkout@v5
25+
with:
26+
persist-credentials: false
2427

2528
- name: Set up Python ${{ matrix.python-version }}
2629
uses: actions/setup-python@v6

.github/workflows/bearer.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ on:
66
pull_request:
77
branches: [main]
88

9-
permissions:
10-
contents: read
9+
permissions: {}
1110

1211
jobs:
1312
rule_check:
13+
permissions:
14+
contents: read
1415
runs-on: ubuntu-latest
1516

1617
steps:
1718
- uses: actions/checkout@v5
19+
with:
20+
persist-credentials: false
1821

1922
- name: Bearer
2023
uses: bearer/bearer-action@v2

.github/workflows/black.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66
pull_request:
77
branches: [main]
88

9-
permissions:
10-
contents: read
9+
permissions: {}
1110

1211
jobs:
1312
black:
1413
name: black Python ${{ matrix.python-version }}
14+
permissions:
15+
contents: read
1516
runs-on: ubuntu-latest
1617
strategy:
1718
fail-fast: false
@@ -21,6 +22,8 @@ jobs:
2122
steps:
2223
- name: Checkout repository
2324
uses: actions/checkout@v5
25+
with:
26+
persist-credentials: false
2427

2528
- name: Set up Python ${{ matrix.python-version }}
2629
uses: actions/setup-python@v6

.github/workflows/csharp-darwin-snippets.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on:
66
- cron: "15 7 * * *"
77
workflow_dispatch:
88

9-
permissions:
10-
contents: read
9+
permissions: {}
1110

1211
jobs:
1312
csharp-darwin-snippets:
@@ -28,7 +27,7 @@ jobs:
2827
- name: checkout repository
2928
uses: actions/checkout@v5
3029
with:
31-
fetch-depth: 0
30+
persist-credentials: false
3231

3332
- uses: actions/setup-dotnet@v5
3433
with:

.github/workflows/csharp-linux-snippets.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
schedule:
99
- cron: "15 7 * * *"
1010

11-
permissions:
12-
contents: read
11+
permissions: {}
1312

1413
jobs:
1514
csharp-linux-snippets:
@@ -30,7 +29,7 @@ jobs:
3029
- name: checkout repository
3130
uses: actions/checkout@v5
3231
with:
33-
fetch-depth: 0
32+
persist-credentials: false
3433

3534
- uses: actions/setup-dotnet@v5
3635
with:

.github/workflows/csharp-windows-snippets.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on:
66
- cron: "15 7 * * *"
77
workflow_dispatch:
88

9-
permissions:
10-
contents: read
9+
permissions: {}
1110

1211
jobs:
1312
csharp-windows-snippets:
@@ -28,7 +27,7 @@ jobs:
2827
- name: checkout repository
2928
uses: actions/checkout@v5
3029
with:
31-
fetch-depth: 0
30+
persist-credentials: false
3231

3332
- uses: actions/setup-dotnet@v5
3433
with:

.github/workflows/dependabot-approve-and-merge.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
pull_request:
55
branches: [main]
66

7-
permissions:
8-
contents: write
9-
pull-requests: write
7+
permissions: {}
108

119
jobs:
1210
dependabot-approve-and-merge:
11+
permissions:
12+
contents: write
13+
pull-requests: write
1314
secrets:
1415
SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }}
1516
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v3

0 commit comments

Comments
 (0)