Skip to content

Commit

Permalink
GitHub Workflows security hardening (#1894)
Browse files Browse the repository at this point in the history
* build: harden continuous-integration.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden website.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

---------

Signed-off-by: Alex <aleksandrosansan@gmail.com>
  • Loading branch information
sashashura authored Feb 6, 2023
1 parent 02aee9c commit a7a7bd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
lint-build:
name: "Lint & Build"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on:
push:
branches:
- docs
permissions: {}
jobs:
build:
permissions:
contents: write
name: Build & Deploy
runs-on: ubuntu-20.04
steps:
Expand Down

0 comments on commit a7a7bd4

Please sign in to comment.