Skip to content

Commit 2c44d67

Browse files
author
Paul Johnson
authored
Modify codeql setup. (#11876)
1 parent baba7ff commit 2c44d67

File tree

2 files changed

+3
-57
lines changed

2 files changed

+3
-57
lines changed

.github/config/codeql-config.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ name: "Code scanning - action"
22

33
on:
44
push:
5-
branches: [v8/contrib,v8/dev,v8/bug,v8/feature]
5+
branches: ['*/dev','*/contrib', '*/feature/**']
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
schedule:
9-
- cron: '0 7 * * 2'
8+
branches: ['*/dev','*/contrib']
109

1110
jobs:
1211
CodeQL-Build:
@@ -16,53 +15,14 @@ jobs:
1615
steps:
1716
- name: Checkout repository
1817
uses: actions/checkout@v2
19-
with:
20-
# We must fetch at least the immediate parents so that if this is
21-
# a pull request then we can checkout the head.
22-
fetch-depth: 2
23-
24-
# If this run was triggered by a pull request event, then checkout
25-
# the head of the pull request instead of the merge commit.
26-
- run: git checkout HEAD^2
27-
if: ${{ github.event_name == 'pull_request' }}
2818

2919
# Initializes the CodeQL tools for scanning.
3020
- name: Initialize CodeQL
3121
uses: github/codeql-action/init@v1
32-
# Override language selection by uncommenting this and choosing your languages
33-
# with:
34-
# languages: go, javascript, csharp, python, cpp, java
35-
36-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
37-
# If this step fails, then you should remove it and run the build manually (see below)
38-
39-
# ℹ️ Command-line programs to run using the OS shell.
40-
# 📚 https://git.io/JvXDl
41-
42-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
43-
# and modify them (or add more) to build your code if your project
44-
# uses a compiled language
45-
46-
- name: configure Pagefile
47-
uses: al-cheb/[email protected]
48-
with:
49-
minimum-size: 8GB
50-
maximum-size: 32GB
51-
22+
5223
- run: |
5324
echo "Run Umbraco-CMS build"
5425
pwsh -command .\build\build.ps1
5526
5627
- name: Perform CodeQL Analysis
5728
uses: github/codeql-action/analyze@v1
58-
with:
59-
config-file: ./.github/config/codeql-config.yml
60-
61-
# This job is to prevent the workflow status from showing as failed when all other jobs are skipped - See https://github.community/t/workflow-is-failing-if-no-job-can-be-ran-due-to-condition/16873
62-
always_job:
63-
name: Always run job
64-
runs-on: ubuntu-latest
65-
steps:
66-
- name: Always run
67-
run: echo "This job is to prevent the workflow status from showing as failed when all other jobs are skipped"
68-

0 commit comments

Comments
 (0)