Skip to content

Commit e563311

Browse files
authored
Merge pull request #1340 from rancher-teja/main
[main] CI improvements
2 parents d606d23 + ad00a10 commit e563311

7 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/apidiff.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
jobs:
55
go-apidiff:
66
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
79
steps:
810
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
911
with:

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
1012
steps:
1113
- name: Checkout code
1214
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

.github/workflows/e2e-branch.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
env:
2424
BRANCH: ${{ inputs.branch }}
2525
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
packages: write
2629
steps:
2730
- name: Checkout code
2831
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

.github/workflows/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
steps:
1214
- name: Checkout code
1315
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

.github/workflows/scan.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
scan:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1416
steps:
1517
- name: Checkout code
1618
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

.github/workflows/unit.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
test:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
911
steps:
1012
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1113
- name: Install Go

.github/workflows/verify.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
test:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
911
steps:
1012
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1113
- name: Install Go

0 commit comments

Comments
 (0)