Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3183e6b

Browse files
committed
Skip non-generated workflows for Dependabot
1 parent cec0b17 commit 3183e6b

8 files changed

+15
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env:
2323
jobs:
2424
# Identify the CodeQL tool versions to use in the analysis job.
2525
check-codeql-versions:
26+
if: github.triggering_actor != 'dependabot[bot]'
2627
runs-on: ubuntu-latest
2728
outputs:
2829
versions: ${{ steps.compare.outputs.versions }}
@@ -75,6 +76,7 @@ jobs:
7576
echo "versions=${VERSIONS_JSON}" >> $GITHUB_OUTPUT
7677
7778
analyze-javascript:
79+
if: github.triggering_actor != 'dependabot[bot]'
7880
needs: [check-codeql-versions]
7981
strategy:
8082
fail-fast: false
@@ -110,6 +112,7 @@ jobs:
110112
upload: ${{ (matrix.os == 'ubuntu-24.04' && !matrix.tools && 'always') || 'never' }}
111113

112114
analyze-other:
115+
if: github.triggering_actor != 'dependabot[bot]'
113116
runs-on: ubuntu-latest
114117

115118
strategy:

.github/workflows/codescanning-config-cli.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defaults:
2828

2929
jobs:
3030
code-scanning-config-tests:
31+
if: github.triggering_actor != 'dependabot[bot]'
3132
continue-on-error: true
3233

3334
permissions:

.github/workflows/debug-artifacts-failure-safe.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defaults:
2424

2525
jobs:
2626
upload-artifacts:
27+
if: github.triggering_actor != 'dependabot[bot]'
2728
strategy:
2829
fail-fast: false
2930
matrix:
@@ -70,6 +71,7 @@ jobs:
7071
expect-error: true
7172
download-and-check-artifacts:
7273
name: Download and check debug artifacts after failure in analyze
74+
if: github.triggering_actor != 'dependabot[bot]'
7375
needs: upload-artifacts
7476
timeout-minutes: 45
7577
permissions:

.github/workflows/debug-artifacts-safe.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defaults:
2323

2424
jobs:
2525
upload-artifacts:
26+
if: github.triggering_actor != 'dependabot[bot]'
2627
strategy:
2728
fail-fast: false
2829
matrix:
@@ -64,6 +65,7 @@ jobs:
6465
id: analysis
6566
download-and-check-artifacts:
6667
name: Download and check debug artifacts
68+
if: github.triggering_actor != 'dependabot[bot]'
6769
needs: upload-artifacts
6870
timeout-minutes: 45
6971
permissions:

.github/workflows/pr-checks.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ defaults:
1515
jobs:
1616
unit-tests:
1717
name: Unit Tests
18+
if: github.triggering_actor != 'dependabot[bot]'
1819
strategy:
1920
fail-fast: false
2021
matrix:
@@ -31,7 +32,7 @@ jobs:
3132
run: git config --global core.autocrlf false
3233

3334
- uses: actions/checkout@v5
34-
35+
3536
- name: Set up Node.js
3637
uses: actions/setup-node@v5
3738
with:
@@ -75,7 +76,7 @@ jobs:
7576
category: eslint
7677

7778
check-node-version:
78-
if: github.event.pull_request
79+
if: github.event.pull_request && github.triggering_actor != 'dependabot[bot]'
7980
name: Check Action Node versions
8081
runs-on: ubuntu-latest
8182
timeout-minutes: 45

.github/workflows/python312-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ defaults:
1818

1919
jobs:
2020
test-setup-python-scripts:
21+
if: github.triggering_actor != 'dependabot[bot]'
2122
env:
2223
CODEQL_ACTION_TEST_MODE: true
2324
timeout-minutes: 45

.github/workflows/query-filters.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defaults:
2222
jobs:
2323
query-filters:
2424
name: Query Filters Tests
25+
if: github.triggering_actor != 'dependabot[bot]'
2526
timeout-minutes: 45
2627
runs-on: ubuntu-latest
2728
permissions:

.github/workflows/test-codeql-bundle-all.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- os: ubuntu-latest
2929
version: nightly-latest
3030
name: 'CodeQL Bundle All'
31+
if: github.triggering_actor != 'dependabot[bot]'
3132
permissions:
3233
contents: read
3334
security-events: read
@@ -46,7 +47,7 @@ jobs:
4647
uses: ./../action/init
4748
with:
4849
# We manually exclude Swift from the languages list here, as it is not supported on Ubuntu
49-
languages: cpp,csharp,go,java,javascript,python,ruby
50+
languages: cpp,csharp,go,java,javascript,python,ruby
5051
tools: ${{ steps.prepare-test.outputs.tools-url }}
5152
- name: Build code
5253
run: ./build.sh

0 commit comments

Comments
 (0)