Skip to content

Commit

Permalink
chore: GitHub Workflows security hardening (#1209)
Browse files Browse the repository at this point in the history
* build: harden node.js.yml permissions

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

* build: harden npm_publish.yml permissions

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

---------

Signed-off-by: Alex <aleksandrosansan@gmail.com>
  • Loading branch information
sashashura committed Apr 29, 2023
1 parent 622e4db commit 08fedc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/node.js.yml
Expand Up @@ -4,6 +4,9 @@ name: Node.js CI

on: [push]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/npm_publish.yml
Expand Up @@ -6,6 +6,9 @@ on:
release:
types: [created]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 08fedc2

Please sign in to comment.