Skip to content

Commit 1c03156

Browse files
#3278 added permissions in github workflows (#3290)
1 parent 9289d7f commit 1c03156

7 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/a11y.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
workflow_dispatch:
44
schedule:
55
- cron: '0 8 * * *'
6+
permissions:
7+
contents: read
68
jobs:
79
test_for_accessibility_issues:
810
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ on:
1919
branches: [main]
2020
schedule:
2121
- cron: '35 1 * * 4'
22-
22+
permissions:
23+
contents: read
2324
jobs:
2425
analyze:
2526
name: Analyze

.github/workflows/dataset-backup.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
schedule:
1515
# Runs at 02:00 UTC every sunday
1616
- cron: '0 2 * * 0'
17+
permissions:
18+
contents: read
1719
env:
1820
BUILD_ARTIFACT_PATH: ${{ github.workspace }}/backups
1921
jobs:

.github/workflows/equinor-algolia-indexers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
- '!./README.md'
2020
- '!./.env.template'
2121

22+
permissions:
23+
contents: read
24+
2225
env:
2326
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
2427
BUILD_OUTPUT_PATH: ${{ github.workspace }}/search

.github/workflows/fotoware-redirect.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ on:
1414
description: 'Enter the branch name in fotoware repository. Default is master'
1515
default: master
1616
type: string
17-
17+
permissions:
18+
contents: read
1819
env:
1920
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
2021
BUILD_PACKAGE_NAME: fotoware.zip

.github/workflows/setup-azure.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
type: string
88
required: true
99

10+
permissions:
11+
contents: read
12+
1013
env:
1114
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1215

.github/workflows/wiki-notifier.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Notify on wiki updates
22
on:
33
gollum
4+
permissions:
5+
contents: read
46
jobs:
57
check_for_updates:
68
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)