Skip to content

Commit 7e4a68d

Browse files
[TESTING] Possible fix for regression Part 3.
### ChangeLog: Changes in file .github/workflows/Labeler.yml: Unknown Changes Changes in file .github/workflows/Tests.yml: jobs: Changes in file .github/workflows/bandit.yml: jobs: Changes in file .github/workflows/codeql-analysis.yml: jobs: Changes in file .github/workflows/makefile-lint.yml: Unknown Changes Changes in file .github/workflows/markdown-lint.yml: Unknown Changes Changes in file .github/workflows/yaml-lint.yml: Unknown Changes
1 parent 6364fc2 commit 7e4a68d

File tree

7 files changed

+86
-16
lines changed

7 files changed

+86
-16
lines changed

.github/workflows/Labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Pull Request Labeler"
22
on:
33
pull_request_target:
44
types: [opened, reopened]
5-
branches: [ master, stable ]
5+
branches: ["master", "stable"]
66

77
# Declare default permissions as none.
88
permissions: {}

.github/workflows/Tests.yml

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: CI
2-
on:
2+
on: # yamllint disable-line rule:truthy
33
push:
44
branches:
55
- master
66
- stable
7+
- HOTFIX-*
78
tags:
89
- v*
910
pull_request:
@@ -14,11 +15,18 @@ on:
1415
- synchronize
1516
- ready_for_review
1617

17-
# Declare default permissions as read only.
18-
permissions: read-all
18+
# Declare default permissions as none.
19+
permissions: {}
1920

2021
jobs:
2122
BUILD:
23+
permissions:
24+
actions: read
25+
contents: read
26+
statuses: write
27+
packages: none
28+
pull-requests: read
29+
security-events: none
2230
if: github.repository == 'reactive-firewall/multicast'
2331
runs-on: ubuntu-latest
2432
defaults:
@@ -43,6 +51,13 @@ jobs:
4351

4452

4553
BOOTSTRAP:
54+
permissions:
55+
actions: read
56+
contents: read
57+
statuses: write
58+
packages: none
59+
pull-requests: read
60+
security-events: none
4661
if: ${{ !cancelled() }}
4762
needs: BUILD
4863
runs-on: ubuntu-latest
@@ -124,6 +139,13 @@ jobs:
124139

125140

126141
MATS:
142+
permissions:
143+
actions: read
144+
contents: read
145+
statuses: write
146+
packages: none
147+
pull-requests: read
148+
security-events: none
127149
if: ${{ !cancelled() }}
128150
needs: BUILD
129151
runs-on: ubuntu-latest
@@ -167,6 +189,13 @@ jobs:
167189

168190

169191
COVERAGE:
192+
permissions:
193+
actions: read
194+
contents: read
195+
statuses: write
196+
packages: none
197+
pull-requests: read
198+
security-events: none
170199
if: ${{ success() }}
171200
needs: [BUILD, MATS]
172201
runs-on: ${{ matrix.os }}
@@ -251,6 +280,13 @@ jobs:
251280

252281

253282
STYLE:
283+
permissions:
284+
actions: read
285+
contents: read
286+
statuses: write
287+
packages: none
288+
pull-requests: read
289+
security-events: none
254290
if: ${{ success() }}
255291
needs: [BUILD, MATS]
256292
runs-on: ubuntu-latest
@@ -289,6 +325,13 @@ jobs:
289325

290326

291327
INTEGRATION:
328+
permissions:
329+
actions: read
330+
contents: read
331+
statuses: write
332+
packages: none
333+
pull-requests: read
334+
security-events: none
292335
if: ${{ success() }}
293336
needs: [MATS, COVERAGE]
294337
runs-on: ${{ matrix.os }}
@@ -398,6 +441,13 @@ jobs:
398441

399442

400443
EXTRAS-FOR-SETUP:
444+
permissions:
445+
actions: read
446+
contents: read
447+
statuses: write
448+
packages: none
449+
pull-requests: read
450+
security-events: none
401451
if: ${{ success() }}
402452
needs: [BOOTSTRAP, MATS]
403453
runs-on: ${{ matrix.os }}
@@ -471,6 +521,13 @@ jobs:
471521

472522

473523
EXTRAS-FOR-PIP:
524+
permissions:
525+
actions: read
526+
contents: read
527+
statuses: write
528+
packages: none
529+
pull-requests: read
530+
security-events: none
474531
if: ${{ !cancelled() }}
475532
needs: [BOOTSTRAP, MATS]
476533
runs-on: ubuntu-latest
@@ -519,6 +576,13 @@ jobs:
519576

520577

521578
DOCS:
579+
permissions:
580+
actions: read
581+
contents: read
582+
statuses: write
583+
packages: none
584+
pull-requests: read
585+
security-events: none
522586
if: ${{ !cancelled() }}
523587
needs: [MATS, COVERAGE, EXTRAS-FOR-SETUP, EXTRAS-FOR-PIP]
524588
runs-on: ${{ matrix.os }}
@@ -578,6 +642,13 @@ jobs:
578642

579643

580644
TOX:
645+
permissions:
646+
actions: read
647+
contents: read
648+
statuses: write
649+
packages: none
650+
pull-requests: read
651+
security-events: none
581652
if: ${{ success() }}
582653
needs: [MATS, STYLE, COVERAGE, INTEGRATION, DOCS]
583654
runs-on: ubuntu-latest

.github/workflows/bandit.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
# https://pypi.org/project/bandit/ is Apache v2.0 licensed, by PyCQA
1212

1313
name: Bandit
14-
on:
14+
on: # yamllint disable-line rule:truthy
1515
push:
16-
branches: [ "master", "stable", feature-*, HOTFIX-* ]
16+
branches: ["master", "stable", feature-*, patch-*, HOTFIX-*]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ "master", "stable" ]
19+
branches: ["master", "stable"]
2020

2121
permissions: {}
2222

@@ -48,4 +48,3 @@ jobs:
4848
# skips: # optional, default is DEFAULT
4949
# path to a .bandit file that supplies command line arguments
5050
# ini_path: # optional, default is DEFAULT
51-

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master, stable ]
16+
branches: ["master", "stable"]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ stable ]
19+
branches: ["master", "stable"]
2020
schedule:
2121
- cron: '17 5 * * 1'
2222

@@ -32,8 +32,8 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'python', 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
35+
language: ['python', 'javascript']
36+
# CodeQL supports ['cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby']
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:

.github/workflows/makefile-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Makefile Lint
44
on: # yamllint disable-line rule:truthy
55
push:
6-
branches: ["main", "master", "stable", feature*]
6+
branches: ["main", "master", "stable", patch-*, feature-*, HOTFIX-*]
77
pull_request:
88
branches: ["main", "master", "stable"]
99

.github/workflows/markdown-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# .github/workflows/markdown-lint.yml
22
---
33
name: Markdown Lint
4-
on:
4+
on: # yamllint disable-line rule:truthy
55
push:
6-
branches: ["main", "master", draft, draft*]
6+
branches: ["master", "stable", feature-*, patch-*, HOTFIX-*]
77
pull_request:
88
branches: ["main", "master"]
99

.github/workflows/yaml-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: YAML Lint
44
on: # yamllint disable-line rule:truthy
55
push:
6-
branches: ["main", "master", "stable", feature*]
6+
branches: ["master", "stable", feature-*, patch-*, HOTFIX-*]
77
pull_request:
88
branches: ["main", "master", "stable"]
99

0 commit comments

Comments
 (0)