Skip to content

Commit

Permalink
ci: bump github actions; reduce job permissions to minimum (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Apr 30, 2022
1 parent d777eca commit e1bb440
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
node-version: [12, 14, 16]
Expand All @@ -21,11 +23,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Restore cached dependencies
uses: actions/cache@v3.0.1
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package.json') }}
Expand Down Expand Up @@ -53,7 +55,10 @@ jobs:
automerge:
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v2.7.1
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e1bb440

Please sign in to comment.