Skip to content

Commit d5ce306

Browse files
author
Joonas Hiltunen
committed
Set permissions for shared-run-e2e
1 parent 132bcaa commit d5ce306

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ name: CI
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
run_e2e_tests_workflow:
811
name: Test run E2E tests workflow
912
uses: ./.github/workflows/shared-run-e2e.yml
1013
with:
11-
test-tags: ''
14+
test-tags: ""

.github/workflows/shared-run-e2e.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
name: Run E2E Tests
33

4+
permissions:
5+
contents: read
6+
47
on:
58
workflow_call:
69
inputs:
@@ -97,7 +100,8 @@ on:
97100
required: false
98101
default: ""
99102
tiamat_version:
100-
description: Version of tiamat to use (docker image tag). Set to "" if using
103+
description:
104+
Version of tiamat to use (docker image tag). Set to "" if using
101105
the default version.
102106
type: string
103107
required: false
@@ -124,11 +128,10 @@ on:
124128
required: false
125129
default: "@smoke"
126130
video:
127-
description:
128-
Turn video on or off. Supported values are 'true' and 'false'.
131+
description: Turn video on or off. Supported values are 'true' and 'false'.
129132
type: string
130133
required: false
131-
default: 'false'
134+
default: "false"
132135
update_e2e_test_durations:
133136
description: |
134137
Should the E2E test durations be updated to jore4-ci-data repository's e2e-test-durations branch
@@ -140,8 +143,7 @@ on:
140143
default: false
141144
secrets:
142145
jore4_ci_data_repo_ssh_key:
143-
description:
144-
SSH key that can be used to write to HSLdevcom/jore4-ci-data repository.
146+
description: SSH key that can be used to write to HSLdevcom/jore4-ci-data repository.
145147
required: false
146148

147149
jobs:
@@ -294,7 +296,7 @@ jobs:
294296
- name: Publish Test Report
295297
uses: ctrf-io/github-test-reporter@27b97adba93f02142c573c8a710045cac0d874ae # v1.0.14
296298
with:
297-
report-path: 'ctrf/*/*.json'
299+
report-path: "ctrf/*/*.json"
298300
summary-report: true
299301
failed-report: true
300302
flaky-report: true
@@ -312,7 +314,7 @@ jobs:
312314
uses: actions/checkout@v4
313315
with:
314316
fetch-depth: 0
315-
repository: 'HSLdevcom/jore4-ci-data'
317+
repository: "HSLdevcom/jore4-ci-data"
316318
ref: e2e-test-durations
317319
ssh-key: ${{ secrets.jore4_ci_data_repo_ssh_key }}
318320

0 commit comments

Comments
 (0)