Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional Task: Add npm audit to Github actions #83

Open
HeniMKH opened this issue Aug 6, 2023 · 0 comments
Open

Optional Task: Add npm audit to Github actions #83

HeniMKH opened this issue Aug 6, 2023 · 0 comments

Comments

@HeniMKH
Copy link
Collaborator

HeniMKH commented Aug 6, 2023

Concepts

  • No new concepts
  • We are combining what we did from the prewvious 2 tasks

Dependencies

Hint
This page has a config https://github.com/sonatype-nexus-community/example-auditjs-repo/blob/master/.github/workflows/nodejs.yml

name: Node CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [8.x, 10.x, 12.x]

    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install, build, and test
      run: |
        npm ci
        npm run build --if-present
        npm test
      env:
        CI: true
    - name: run auditjs
      run: |
        npx auditjs@beta ossi

@HeniMKH HeniMKH converted this from a draft issue Aug 6, 2023
@HeniMKH HeniMKH self-assigned this Aug 6, 2023
@HeniMKH HeniMKH moved this from 📋 Product Backlog to ⏰ In Progress in Unicorns Aug 8, 2023
@jarrodruby jarrodruby moved this from ⏰ In Progress to 📋 Product Backlog in Unicorns Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Product Backlog
Development

No branches or pull requests

1 participant