Skip to content

Commit 6fd553e

Browse files
authored
Tidy some files
1 parent f32c9e7 commit 6fd553e

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: build
22
on: [push, pull_request]
3+
4+
permissions:
5+
contents: read
6+
37
jobs:
48
build:
59
name: "${{ matrix.id }}"
@@ -57,6 +61,8 @@ jobs:
5761
- name: Install Git
5862
run: apt-get -y install git
5963
- uses: actions/checkout@v4
64+
with:
65+
persist-credentials: false
6066
- name: Install build tools
6167
shell: bash
6268
run: |

.github/workflows/debian.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
name: debian
55
on: [push, pull_request]
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
debian-build:
812
name: 'Debian Build ${{ matrix.image_tag }} ${{ matrix.architecture }}'
@@ -28,6 +32,8 @@ jobs:
2832
- name: Install Git
2933
run: apt-get -y install git
3034
- uses: actions/checkout@v4
35+
with:
36+
persist-credentials: false
3137
- name: Install build tools
3238
run: apt-get -y install devscripts adduser fakeroot sudo
3339
- name: Install build dependencies
@@ -70,7 +76,9 @@ jobs:
7076
architecture: [amd64]
7177
container: debian:${{ matrix.image_tag }}
7278
steps:
73-
- uses: actions/checkout@master
79+
- uses: actions/checkout@v4
80+
with:
81+
persist-credentials: false
7482
- name: Download build artifact
7583
uses: actions/download-artifact@v4
7684
with:

.github/workflows/isort.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: isort
22

3-
on:
4-
- push
5-
- pull_request
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
67

78
jobs:
89
isort:
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
1215
- uses: isort/isort-action@v1

.github/workflows/lint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: lint
22
on: [push, pull_request]
3+
4+
permissions:
5+
contents: read
6+
37
jobs:
48
build:
59
name: Build for Lint Tasks
@@ -17,6 +21,8 @@ jobs:
1721
- name: Install Git
1822
run: apt-get -y install git
1923
- uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2026
- name: Install build tools
2127
shell: bash
2228
run: |
@@ -261,6 +267,8 @@ jobs:
261267
runs-on: ubuntu-latest
262268
steps:
263269
- uses: actions/checkout@v4
270+
with:
271+
persist-credentials: false
264272
- name: Setup Node.js v18
265273
uses: actions/setup-node@v3
266274
with:

0 commit comments

Comments
 (0)