Skip to content

Commit

Permalink
GitHub Actions read permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed May 31, 2022
1 parent 449fb2b commit ba2bd10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions {{cookiecutter.hyphenated}}/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions {{cookiecutter.hyphenated}}/.github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test

on: [push, pull_request]

permissions:
contents: read
{% raw %}
jobs:
test:
Expand Down

1 comment on commit ba2bd10

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.