Skip to content

Commit a5980f5

Browse files
authored
Merge pull request #4657 from MidnightCommander/feature/update-workflows
maint: specify permissions and timeouts for all workflows
2 parents 0eef293 + 4efc37d commit a5980f5

8 files changed

+31
-4
lines changed

.github/workflows/ci-alpine.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
jobs:
77
build-alpine:
88
runs-on: ubuntu-latest
9+
timeout-minutes: 5
10+
911
container:
1012
image: alpine:latest
11-
timeout-minutes: 5
13+
14+
permissions:
15+
contents: read
1216

1317
steps:
1418
- uses: actions/checkout@v4

.github/workflows/ci-fedora.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
jobs:
77
build-fedora:
88
runs-on: ubuntu-latest
9+
timeout-minutes: 5
10+
911
container:
1012
image: fedora:latest
11-
timeout-minutes: 5
13+
14+
permissions:
15+
contents: read
1216

1317
steps:
1418
- name: Install git inside container

.github/workflows/ci-freebsd.yml

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 15
1616

17+
permissions:
18+
contents: read
19+
1720
steps:
1821
- uses: actions/checkout@v4
1922

.github/workflows/ci-macos.yml

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
runs-on: macos-latest
1515
timeout-minutes: 5
1616

17+
permissions:
18+
contents: read
19+
1720
steps:
1821
- uses: actions/checkout@v4
1922

.github/workflows/ci-solaris.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 15
1010

11+
permissions:
12+
contents: read
13+
1114
steps:
1215
- uses: actions/checkout@v4
1316

.github/workflows/ci-ubuntu.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 10
1010

11+
permissions:
12+
contents: read
13+
1114
steps:
1215
- uses: actions/checkout@v4
1316

.github/workflows/transifex.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ concurrency:
1010

1111
jobs:
1212
transifex-upload:
13-
1413
runs-on: ubuntu-latest
15-
timeout-minutes: 15
14+
timeout-minutes: 5
15+
16+
permissions:
17+
contents: read
1618

1719
steps:
1820
- uses: actions/checkout@v4

.github/workflows/update-sources.yml

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ concurrency:
1111
jobs:
1212
update-sources:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
16+
permissions:
17+
contents: read
18+
1419
steps:
1520
- uses: actions/checkout@v4
1621

0 commit comments

Comments
 (0)