Skip to content

Commit

Permalink
Add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Feb 9, 2024
1 parent 3d22c38 commit f3a7007
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/add_to_octokit_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request_target:
types: [reopened, opened]

permissions:
issues: write
pull-requests: write

jobs:
add-to-project:
name: Add issue to project
Expand All @@ -14,7 +18,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/octokit/projects/10
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
project-url: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN && 'https://github.com/orgs/octokit/projects/10' || '' }}
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN || github.token }}
labeled: "Status: Stale"
label-operator: NOT
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
schedule:
- cron: '0 13 * * 5'

permissions:
contents: read
actions: read
security-events: write

jobs:
CodeQL-Build:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ name: Release
- next
- beta
- "*.x"

permissions:
contents: read

jobs:
release:
name: release
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ name: Test
types:
- opened
- synchronize

permissions:
contents: read

jobs:
test_matrix:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Update Prettier
push:
branches:
- renovate/prettier-*

permissions:
contents: read

jobs:
update_prettier:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f3a7007

Please sign in to comment.