Skip to content

Commit

Permalink
Fix workflows permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bcodesido committed Oct 17, 2024
1 parent e4011c5 commit 8a9a404
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
branches:
- "**"

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

jobs:
build:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ on:
schedule:
- cron: "0 0 * * *"

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

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
tags:
- '*'

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

jobs:
docker:
runs-on: ubuntu-20.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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 8a9a404

Please sign in to comment.