Skip to content

Commit

Permalink
Set default permissions on GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
big-andy-coates committed Dec 17, 2022
1 parent 71a04c9 commit 8709351
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ on:
description: "Publish snapshot artifacts: true or false?"
default: "true"

permissions: read-all
permissions:
contents: read

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
pull_request:
branches: [ main ]

permissions: read-all
permissions:
contents: read

jobs:
analyze:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ name: Release

on: [workflow_dispatch]

permissions: read-all
permissions:
contents: read

concurrency: "${{ github.repository }}-versioning"

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
required: true
default: Minor

permissions: read-all
permissions:
contents: read

concurrency: "${{ github.repository }}-versioning"

Expand Down

0 comments on commit 8709351

Please sign in to comment.