Skip to content

[Snyk] Security upgrade fastify from 4.28.1 to 4.29.1 #142

[Snyk] Security upgrade fastify from 4.28.1 to 4.29.1

[Snyk] Security upgrade fastify from 4.28.1 to 4.29.1 #142

Workflow file for this run

name: Main
on:
push:
branches:
- main
tags-ignore:
- '**'
pull_request:
branches:
- main
jobs:
tests:
name: Run tests and lint
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies and run tests and lint
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests
run: npx tap run --coverage-report=lcov test/*.test.js
# send the coverage report to coveralls.io
- name: Coveralls Report
uses: coverallsapp/github-action@v2
with:
allow-empty: true
fail-on-error: false
github-token: ${{ secrets.GITHUB_TOKEN }}
file: .tap/report/lcov.info
commitizen-check:
name: 'Check commits'
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Install comitizen tool and commitizen check
run: |
pip install --user -U Commitizen
cz check --rev-range origin/main...HEAD
security:
name: 'Run snyk security check'
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif
check-signed-commits:
name: 'Check commits signature'
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: write
steps:
- name: Check signed commits in PR
uses: 1Password/check-signed-commits-action@v1
with:
comment: |
All commits must be signed before merging PR
release-please:
name: 'Release action'
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: write
pull-requests: write
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.release_please_token}}
release-type: node