Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the default permissions granted to GITHUB_TOKEN for a job #79

Open
yeikel opened this issue Apr 13, 2023 · 0 comments
Open

Modify the default permissions granted to GITHUB_TOKEN for a job #79

yeikel opened this issue Apr 13, 2023 · 0 comments
Labels
good first issue Good for newcomers recipe

Comments

@yeikel
Copy link
Contributor

yeikel commented Apr 13, 2023

From https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

name: "My workflow"

on: [ push ]

permissions:
  actions: read|write|none
  checks: read|write|none
  contents: read|write|none
  deployments: read|write|none
  id-token: read|write|none
  issues: read|write|none
  discussions: read|write|none
  packages: read|write|none
  pages: read|write|none
  pull-requests: read|write|none
  repository-projects: read|write|none
  security-events: read|write|none
  statuses: read|write|none

jobs:

Example:

jobs:
  stale:
    runs-on: ubuntu-latest

    permissions:
      issues: write
      pull-requests: write

    steps:
      - uses: actions/stale@v5
@timtebeek timtebeek moved this to Recipes Wanted in OpenRewrite Apr 14, 2023
@timtebeek timtebeek added the good first issue Good for newcomers label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers recipe
Projects
Status: Recipes Wanted
Development

No branches or pull requests

2 participants