Skip to content

Commit

Permalink
chore: restrict GitHub actions permissions
Browse files Browse the repository at this point in the history
Be more selective in granting permissions to actions
  • Loading branch information
raboof committed Jun 17, 2024
1 parent 7647f13 commit e2be896
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ on:
push:
branches:
- main # default branch of the project

permissions: {}

jobs:
dependency-graph:
name: Update Dependency Graph
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: scalacenter/sbt-dependency-submission@v2
permissions:
# The API requires write permission on the repository
# to submit dependencies
contents: write
4 changes: 4 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:

name: Launch Scala Steward

# The GitHub Action doesn't need permissions: it only reads already-public
# data and creates PRs through the scala-steward-asf bot:
permissions: {}

jobs:
scala-steward:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit e2be896

Please sign in to comment.