Skip to content

Bump the maven group across 1 directory with 2 updates #3

Bump the maven group across 1 directory with 2 updates

Bump the maven group across 1 directory with 2 updates #3

name: CodeQL Example01 JavaScript
on:
# push:
# branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Container_Example01_JavaScript:
runs-on: 'Ubuntu-latest'
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [javascript]
container:
image: node:18
options: --user root
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set safe directory
run: |
git config --global --add safe.directory /__w/CodeQL_containerizedApp/CodeQL_containerizedApp/
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
- name: NPM Installation
working-directory: /__w/CodeQL_containerizedApp/CodeQL_containerizedApp/Example01_JavaScript/
run: |
npm i -g typescript ts-node && \
npm install --omit=dev --unsafe-perm && \
npm dedupe && \
rm -rf frontend/node_modules && \
rm -rf frontend/.angular && \
rm -rf frontend/src/assets && \
mkdir logs && \
chown -R 65532 logs && \
chgrp -R 0 ftp/ frontend/dist/ logs/ data/ i18n/ && \
chmod -R g=u ftp/ frontend/dist/ logs/ data/ i18n/ && \
rm data/chatbot/botDefaultTrainingData.json || true && \
rm ftp/legal.md || true && \
rm i18n/*.json || true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2