Skip to content

Commit

Permalink
Fix workflows permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bernacodesido committed Oct 17, 2024
1 parent 3f3a012 commit 591fbd8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
tags:
- '*'

# Declare default permissions as read only.
permissions: read-all

env:
GHCR_REPO: "ghcr.io/rsksmart/powpeg-node"
DOCKERHUB_REPO: "rsksmart/powpeg-node"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
branches:
- "**"

permissions:
contents: read
# Declare default permissions as read only.
permissions: read-all

jobs:
verify_files:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: 'Dependency Review'
on: [pull_request]

# Declare default permissions as read only.
permissions: read-all

jobs:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/reproducible.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Reproducible build
on:
release:
type:
- created
types:
- created

# Declare default permissions as read only.
permissions: read-all

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
required: false
default: 'master'

# Declare default permissions as read only.
permissions: read-all

jobs:
rootstock-integration-tests:
name: Rootstock Integration Tests
Expand Down

0 comments on commit 591fbd8

Please sign in to comment.