Skip to content

Commit

Permalink
[github workflow] Resolve token-permissions security alerts (flutter#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sealesj authored and mauricioluz committed Jan 26, 2023
1 parent 76f38f8 commit d561308
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/mirror.yml
Expand Up @@ -7,6 +7,9 @@ on:
push:
branches:
- 'main'

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

jobs:
mirror_job:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull_request_label.yml
Expand Up @@ -12,6 +12,9 @@ on:
pull_request_target:
types: [opened, synchronize, reopened, closed]

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

jobs:
label:
permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main

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

jobs:
release:
if: github.repository_owner == 'flutter'
Expand Down

0 comments on commit d561308

Please sign in to comment.