5180 fichiers 38.5 Mo 0 téléchargements 97 vues mis à jour il y a 4 heures ui
audit.yml 1.1 Ko Télécharger le fichier
name: Audit

# Fails when yarn npm audit reports an advisory of high severity or above, in a dependency or in the
# tooling. It is its own workflow, not a step of CI, so a new advisory in a transitive package does not
# turn every unrelated pull request red: it runs when the dependencies change, every Monday, and on demand.
on:
  pull_request:
    branches: [ Dev, main ]
    paths:
      - package.json
      - yarn.lock
      - .yarnrc.yml
  schedule:
    - cron: "41 5 * * 1"
  workflow_dispatch:

permissions:
  contents: read

concurrency:
  group: audit-${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  audit:
    name: yarn npm audit
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - name: Checkout
        uses: actions/checkout@v7

      - name: Set up Node.js
        uses: actions/setup-node@v7
        with:
          node-version: 22

      - name: Enable Corepack
        run: corepack enable

      # The audit reads the lockfile; nothing is installed.
      - name: Audit
        env:
          COREPACK_ENABLE_DOWNLOAD_PROMPT: '0'
        run: corepack yarn npm audit --all --recursive --severity high
15Sujets
1Dépôts
20Membres
7En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser