Skip to content

chore(deps): bump step-security/harden-runner from 2.7.1 to 2.8.1 #119

chore(deps): bump step-security/harden-runner from 2.7.1 to 2.8.1

chore(deps): bump step-security/harden-runner from 2.7.1 to 2.8.1 #119

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
env:
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
CONTENTFUL_SPACE: ${{ vars.CONTENTFUL_SPACE }}
CONTENTFUL_ENVIRONMENT: ${{ vars.CONTENTFUL_ENVIRONMENT }}
CONTENTFUL_ENTRY: ${{ vars.CONTENTFUL_ENTRY }}
CONTENTFUL_CONTENT_TYPE: ${{ vars.CONTENTFUL_CONTENT_TYPE }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x']
steps:
- name: 🔐 Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
cdn.contentful.com:443
github.com:443
registry.npmjs.org:443
- name: 🔔 Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: ⚙️ Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- name: ⚙️ Install dependencies
run: npm ci
- name: ⚙️ Install e2e dependencies
run: npm --prefix __tests__/e2e/import-library/ i __tests__/e2e/import-library/ --no-save
- name: 🧪 Run tests
run: npm run test:ci