Skip to content

Commit dc81138

Browse files
authored
Merge pull request #3152 from IgniteUI/kdinev-patch-2
ci(*): create codeql.yml
2 parents 08f549d + ceb8964 commit dc81138

7 files changed

Lines changed: 107 additions & 14 deletions

File tree

.github/workflows/build-app-crm.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: CI
3+
name: App CRM CI
44

55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
77
on:
88
push:
9-
branches: [ master, vNext]
9+
branches: [ master, vNext ]
1010
paths:
1111
- '**'
1212
- '!src/**'
1313
- '!live-editing/**'
1414
- '!projects/app-lob/**'
1515
pull_request:
16-
branches: [ master, vNext]
16+
branches: [ master, vNext ]
1717
paths:
1818
- '**'
1919
- '!src/**'
@@ -27,11 +27,21 @@ jobs:
2727
# The type of runner that the job will run on
2828
runs-on: ubuntu-latest
2929

30+
strategy:
31+
matrix:
32+
node-version: [16.x, 18.x]
33+
3034
# Steps represent a sequence of tasks that will be executed as part of the job
3135
steps:
3236
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3337
- uses: actions/checkout@v2
3438

39+
- name: Use Node.js ${{ matrix.node-version }}
40+
uses: actions/setup-node@v2
41+
with:
42+
node-version: ${{ matrix.node-version }}
43+
cache: 'npm'
44+
3545
- name: Install dependencies
3646
run: npm ci
3747

.github/workflows/build-app-lob.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: CI
3+
name: App LOB CI
44

55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
77
on:
88
push:
9-
branches: [ master, vNext]
9+
branches: [ master, vNext ]
1010
paths:
1111
- '**'
1212
- '!src/**'
@@ -16,7 +16,7 @@ on:
1616
- 'live-editing/generators/AppDVConfigGenerators.ts'
1717
- '!projects/app-crm/**'
1818
pull_request:
19-
branches: [ master, vNext]
19+
branches: [ master, vNext ]
2020
paths:
2121
- '**'
2222
- '!src/**'
@@ -32,11 +32,21 @@ jobs:
3232
# The type of runner that the job will run on
3333
runs-on: ubuntu-latest
3434

35+
strategy:
36+
matrix:
37+
node-version: [16.x, 18.x]
38+
3539
# Steps represent a sequence of tasks that will be executed as part of the job
3640
steps:
3741
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3842
- uses: actions/checkout@v2
3943

44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v2
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
cache: 'npm'
49+
4050
- name: Install dependencies
4151
run: npm ci
4252

.github/workflows/codeql.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master", "vNext" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "master", "vNext" ]
20+
schedule:
21+
- cron: '37 17 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# 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
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2
73+
with:
74+
category: "/language:${{matrix.language}}"

projects/app-lob/src/app/grid-finjs/main.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
</div>
3030
</igx-dialog>
3131
</div>
32-
3332
<ng-template let-series="series" let-item="item" #seriesTooltip>
3433
<div class="tooltipTable">
3534
<div class="tooltipRow">

src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
4343
{ format: "longDate", eq: "'MMMM d, y'"},
4444
{ format: "fullDate", eq: "'EEEE, MMMM d, y'"}
4545
];
46-
46+
4747
// Time formats
4848
public timeFormats = [
4949
{ format: "shortTime", eq: "'h:mm a'" },
@@ -208,7 +208,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
208208
}
209209
];
210210

211-
private regEx = new RegExp('^[0-9]+\.[0-9]+\-[0-9]$')
211+
private regEx = new RegExp('^[0-9]+.[0-9]+-[0-9]$')
212212

213213
constructor() {
214214
}
@@ -248,7 +248,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
248248
this.dateOptions.format = event.newSelection.value;
249249
this.formatDateOptions = Object.assign({}, this.formatDateOptions, this.dateOptions);
250250
}
251-
251+
252252
public selectionTimeChanging(event) {
253253
this.timeOptions.format = event.newSelection.value;
254254
this.formatTimeOptions = Object.assign({}, this.formatTimeOptions, this.timeOptions);

src/app/grid/grid-crud-sample/crud-sample.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ export class CRUDSampleComponent implements OnInit, OnDestroy {
4747
});
4848
}
4949

50-
public rowAdded(event: IRowDataEventArgs) {
50+
public rowAdded(event: IRowDataEventArgs): void {
5151
this._crudService.add(event.data).subscribe((rec) => {
5252
// this.snackbar.open(`Row with ID of ${rec.ID} was created.`);
5353
});
5454
}
5555

56-
public rowDeleted(event: IRowDataEventArgs) {
56+
public rowDeleted(event: IRowDataEventArgs): void {
5757
this.grid.isLoading = true;
5858
this._crudService.delete(event.data).subscribe({
5959
next: (data: any) => {
@@ -69,7 +69,7 @@ export class CRUDSampleComponent implements OnInit, OnDestroy {
6969
});
7070
}
7171

72-
public rowEditDone(event: IGridEditDoneEventArgs) {
72+
public rowEditDone(event: IGridEditDoneEventArgs): void {
7373
if (!event.isAddRow) {
7474
this.grid.isLoading = true;
7575
this._crudService.update(event.newValue).subscribe((rec) => {

src/app/layouts/carousel/carousel-animations-sample/carousel-animations-sample.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h4 igxCardHeaderTitle>{{slide.heading}}</h4>
2727
</igx-card-media>
2828

2929
<igx-card-actions>
30-
<a igxButton href="{{slide.link}}" target="_blank" style="text-decoration: none;">visit page</a>
30+
<a igxButton href="{{slide.link}}" target="_blank" rel="noopener" style="text-decoration: none;">visit page</a>
3131
</igx-card-actions>
3232
</igx-card>
3333
</div>

0 commit comments

Comments
 (0)