Skip to content

Commit 35eb293

Browse files
author
Joe DiMarzio
committed
replace code scanning v3 with v4 which ignores dependabot pulls
1 parent e4c83c9 commit 35eb293

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

.github/workflows/code-scanning-v3.yml renamed to .github/workflows/code-scanning-v4.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This workflow is inherited from our internal .github repo at https://github.com/lifeomic/.github/blob/master/workflow-templates/code-scanning-v3.yml
2-
#
1+
# This workflow is inherited from our internal .github repo at https://github.com/lifeomic/.github/blob/master/workflow-templates/code-scanning-2021-06-08.yml
32
# Setting up this workflow on the repository will perform a static scan for security issues using GitHub Code Scanning.
43
# Any findings for a repository can be found under the `Security` tab -> `Code Scanning Alerts`
54
name: "CodeQL"
@@ -26,6 +25,7 @@ on:
2625

2726
jobs:
2827
analyze:
28+
if: ${{ !contains(github.head_ref, 'dependabot') }}
2929
name: Analyze
3030
runs-on: ubuntu-latest
3131

@@ -40,11 +40,6 @@ jobs:
4040
# a pull request then we can checkout the head.
4141
fetch-depth: 2
4242

43-
# If this run was triggered by a pull request event, then checkout
44-
# the head of the pull request instead of the merge commit.
45-
- run: git checkout HEAD^2
46-
if: ${{ github.event_name == 'pull_request' }}
47-
4843
# Initializes the CodeQL tools for scanning.
4944
- name: Initialize CodeQL
5045
uses: github/codeql-action/init@v1
@@ -53,20 +48,9 @@ jobs:
5348
queries: +security-extended # This will run all queries at https://github.com/github/codeql/:language/ql/src/codeql-suites/:language-security-extended.qls
5449

5550
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56-
# If this step fails, then you should remove it and run the build manually (see below)
51+
# If this step fails, it should be removed and replaced with custom build steps.
5752
- name: Autobuild
5853
uses: github/codeql-action/autobuild@v1
5954

60-
# ℹ️ Command-line programs to run using the OS shell.
61-
# 📚 https://git.io/JvXDl
62-
63-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
64-
# and modify them (or add more) to build your code if your project
65-
# uses a compiled language
66-
67-
#- run: |
68-
# make bootstrap
69-
# make release
70-
7155
- name: Perform CodeQL Analysis
7256
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)