Bump the pip group across 1 directory with 4 updates #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |