diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 5f84887ae..c723c7c09 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -13,6 +13,9 @@ on: pull_request: branches: [ master ] +permissions: + contents: read + jobs: test: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 00b048ff4..ac62bdd4c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -4,9 +4,15 @@ on: schedule: - cron: "30 1 * * *" +permissions: + contents: read + jobs: stale: + permissions: + issues: write # for actions/stale to close stale issues + pull-requests: write # for actions/stale to close stale PRs runs-on: ubuntu-latest steps: