Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

chore: Set permissions for GitHub actions #4637

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/cancel-previous-runs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
branches-ignore:
- latest

permissions:
contents: read

jobs:
cleanup-runs:
permissions:
actions: write # for rokroskar/workflow-run-cleanup-action to obtain workflow name & cancel it
contents: read # for rokroskar/workflow-run-cleanup-action to obtain branch
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/psammead-change-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- '**'
- '!latest'

permissions:
contents: read

jobs:
build:
name: Change Scanner
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/psammead-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- latest

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/psammead-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
branches:
- latest

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down