Skip to content

Commit b045dc0

Browse files
authored
Merge pull request #16 from tyler-technologies-oss/appsec-ghas-codeql_enable-codecomp-dropper
Security Code Scanning - configuration files
2 parents e45a71f + 267fa11 commit b045dc0

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configuration file for CodeQL.
2+
# You can tune the CodeQL analysis (excluding paths from being scanned for instance)
3+
#
4+
# See https://codeql.github.com/docs/codeql-cli/specifying-command-options-in-a-codeql-configuration-file/
5+
# Reach out on Teams at 'Corp DevOps / Github Community' to get help.
6+
7+
paths-ignore:
8+
- "**/*__tests__*/**"
9+
- "*vendor"
10+
- "**/vendor*/**"
11+
- "docs/*"
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# Reach out on Teams at 'Corp DevOps / Github Community' to get help.
8+
9+
name: "CodeQL - Default"
10+
11+
on:
12+
push:
13+
branches: ['master']
14+
pull_request:
15+
# The branches below must be a subset of the branches above
16+
branches: [ '**' ]
17+
schedule:
18+
- cron: '29 7 8 * *'
19+
workflow_dispatch:
20+
21+
jobs:
22+
analyze:
23+
name: Analyze
24+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || (matrix.language == 'csharp' && 'windows-latest') || 'ubuntu-latest' }}
25+
permissions:
26+
actions: read
27+
contents: read
28+
security-events: write
29+
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
# TODO: The language array below is purposefully left blank. You will need to update it with the language or languages this repo contains before this action will succeed
34+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
35+
language: ['javascript']
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
41+
# Initializes the CodeQL tools for scanning.
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v3
44+
with:
45+
languages: ${{ matrix.language }}
46+
config-file: ./.github/codeql/codeql-config-default.yml
47+
queries: security-extended
48+
# 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
49+
# queries: security-extended,security-and-quality
50+
51+
- name: Autobuild
52+
uses: github/codeql-action/autobuild@v3
53+
54+
- name: Perform CodeQL Analysis
55+
uses: github/codeql-action/analyze@v3
56+
with:
57+
category: "/language:${{matrix.language}}"
58+
env:
59+
ARTIFACTORY_NPM_REGISTRY: ${{secrets.SCRATCH_ARTIFACTORY_NPM_REGISTRY}}
60+
ARTIFACTORY_NUGET_REGISTRY: ${{secrets.SCRATCH_ARTIFACTORY_NUGET_REGISTRY}}
61+
ARTIFACTORY_PASSWORD: ${{secrets.SCRATCH_ARTIFACTORY_PASSWORD}}
62+
ARTIFACTORY_TOKEN: ${{secrets.SCRATCH_ARTIFACTORY_TOKEN}}
63+
ARTIFACTORY_USERNAME: ${{secrets.SCRATCH_ARTIFACTORY_USERNAME}}

0 commit comments

Comments
 (0)