Skip to content

CodeQL Scan Service-3 #10

CodeQL Scan Service-3

CodeQL Scan Service-3 #10

# This workflow will trigger only when a file in the service-3 directory is edited.
#
# Make note of the following lines:
# 11 and 15: this tells the action when to run
# 43 through 45: This tells codeql to only scan the code in the service-3 directory
# 51: This is the category. THIS IS SUPER IMPORTANT. If you don't edit the category
# the results will be overwritten when other services/directories are scanned
#
name: "CodeQL Scan Service-3"
on:
push:
branches: [ "main" ]
paths:
- 'service-3/**'
pull_request:
branches: [ "main" ]
paths:
- 'service-3/**'
schedule:
- cron: '31 2 * * 2'
jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "python"
config: |
paths:
- 'service-3/**'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "service-3"