Skip to content

Commit

Permalink
Make Github workflows permissions read-only by default (#3488)
Browse files Browse the repository at this point in the history
* Make Github workflows permissions read-only by default

* Pins `skx/github-action-publish-binaries` action to specific hash
  • Loading branch information
yoniko authored Feb 14, 2023
1 parent 886de7b commit 727d031
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dev-long-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
branches: [ dev, release, actionsTest ]

permissions: read-all

jobs:
make-all:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev-short-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
pull_request:
branches: [ dev, release, actionsTest ]

permissions: read-all

jobs:
linux-kernel:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
types:
- published

permissions:
contents: read
permissions: read-all

jobs:
publish-release-artifacts:
Expand Down Expand Up @@ -68,7 +67,7 @@ jobs:
fi
- name: Publish
uses: skx/github-action-publish-binaries@release-2.0
uses: skx/github-action-publish-binaries@b9ca5643b2f1d7371a6cba7f35333f1461bbc703 # tag=release-2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 727d031

Please sign in to comment.