-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define permissions following the principle of least privilege (#2676)
* Define top permission as read-all Signed-off-by: Mauro Morales <[email protected]> * Add lint and uki to the mix Signed-off-by: Mauro Morales <[email protected]> * Add permissions to core-ubuntu-22-lts Signed-off-by: Mauro Morales <[email protected]> * add actions: read Signed-off-by: Mauro Morales <[email protected]> * Apply to all reusable-build-flavor in image-pr Signed-off-by: Mauro Morales <[email protected]> * Add other reusable permissions Signed-off-by: Mauro Morales <[email protected]> * Now to image-arm-pr Signed-off-by: Mauro Morales <[email protected]> * Add top level permissions to all reusable Signed-off-by: Mauro Morales <[email protected]> * Add uki.yaml permissions Signed-off-by: Mauro Morales <[email protected]> * Add image-arm.yaml permissions Signed-off-by: Mauro Morales <[email protected]> * image.yaml permissions Signed-off-by: Mauro Morales <[email protected]> * release-arm.yaml permissions Signed-off-by: Mauro Morales <[email protected]> * release and uki branches persmission Signed-off-by: Mauro Morales <[email protected]> * Add reads Signed-off-by: Mauro Morales <[email protected]> * Also for provider in image-pr Signed-off-by: Mauro Morales <[email protected]> * Same for custom partitioning Signed-off-by: Mauro Morales <[email protected]> * Add extra read permissions Signed-off-by: Mauro Morales <[email protected]> --------- Signed-off-by: Mauro Morales <[email protected]>
- Loading branch information
1 parent
d107406
commit 5f4e90b
Showing
26 changed files
with
251 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
pull_request: | ||
paths: | ||
- '**' | ||
permissions: read-all | ||
env: | ||
FORCE_COLOR: 1 | ||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
tags: | ||
- v* | ||
|
||
permissions: read-all | ||
jobs: | ||
get-core-matrix: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ on: | |
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ on: | |
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
test: | ||
runs-on: fast | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ on: | |
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
build: | ||
runs-on: ${{ inputs.worker }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ on: | |
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
required: false | ||
type: boolean | ||
|
||
permissions: read-all | ||
jobs: | ||
test: | ||
runs-on: kvm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
required: true | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
test: | ||
runs-on: fast | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ on: | |
required: false | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
test: | ||
runs-on: kvm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
required: false | ||
type: string | ||
|
||
permissions: read-all | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
Oops, something went wrong.