Skip to content

Commit

Permalink
Add specific permissions to workflows under .github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Sep 19, 2021
1 parent c971f31 commit 08efe2f
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
env:
PRODUCT: wayback

permissions: write-all

jobs:
build:
name: Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
schedule:
- cron: '33 23 * * 4'

permissions: write-all

jobs:
analyze:
name: Analyze
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
release:
types: [published]

permissions: {}

jobs:
release-brew:
if: github.repository == 'wabarc/wayback'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
- 'snapcraft.yaml'
workflow_dispatch:

permissions: write-all

jobs:
publish:
if: github.repository == 'wabarc/wayback'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
- '**'
types: [ opened, synchronize, reopened ]

permissions: write-all

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
env:
PRODUCT: wayback

permissions: write-all

jobs:
build:
name: Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/snapcraft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch:

permissions: write-all

jobs:
snapcraft:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
schedule:
- cron: "0 3 * * 6"

permissions:
issues: write
pull-requests: write

jobs:
stale:
name: Stale
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
- "Makefile"
workflow_dispatch:

permissions: write-all

jobs:
testing:
name: Testing
Expand Down

0 comments on commit 08efe2f

Please sign in to comment.