Skip to content

Commit e6931de

Browse files
Add permissions section to exercise 1, 2, and 4 workflows
1 parent 9542ab4 commit e6931de

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/exercise1_workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Workflow of exercise 1
22
run-name: First workflow
33

4-
permissions: {}
4+
permissions: {
5+
contents: read
6+
}
57

68
on: [push]
79

.github/workflows/exercise2_workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Workflow of exercise 2
22
run-name: Second workflow
33

4-
permissions: {}
4+
permissions: {
5+
contents: read
6+
}
57

68
on:
79
push:

.github/workflows/exercise3_workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Workflow of exercise 3
22
run-name: Third workflow
33

4-
permissions: {}
4+
permissions: {
5+
contents: read
6+
}
57

68
on:
79
push:

.github/workflows/exercise4_workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Workflow of exercise 4
22
run-name: Fourth workflow
33

4-
permissions: {}
4+
permissions: {
5+
contents: read
6+
}
57

68
on:
79
push:

0 commit comments

Comments
 (0)