Skip to content

Commit

Permalink
Merge pull request #133 from github/dg/actions-permissions
Browse files Browse the repository at this point in the history
Specify permissions for actions
  • Loading branch information
dgreif authored Oct 14, 2024
2 parents 8914023 + 4519747 commit eb5cb5e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Node CI

permissions:
contents: read

on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: npm install, build, and test
run: |
npm install
npm run build
npm test
env:
CI: true
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: npm install, build, and test
run: |
npm install
npm run build
npm test
env:
CI: true
3 changes: 3 additions & 0 deletions .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

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

0 comments on commit eb5cb5e

Please sign in to comment.