Skip to content

Commit 23de056

Browse files
committed
ci: use pull_request as trigger to code analysis workflows
1 parent 84e28f2 commit 23de056

File tree

3 files changed

+30
-27
lines changed

3 files changed

+30
-27
lines changed

.github/workflows/codacy-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ name: Codacy Security Scan
1616
on:
1717
schedule:
1818
- cron: '59 11 27 * *'
19-
# push:
20-
# branches: [ "master" ]
21-
# pull_request:
22-
# branches: [ "master" ]
23-
# types: [opened, reopened, synchronize, ready_for_review]
19+
push:
20+
branches: [ "master" ]
21+
pull_request:
22+
branches: [ "master" ]
23+
types: [opened, reopened, synchronize, ready_for_review]
2424
# workflow_run:
2525
# workflows: [Test Changes]
2626
# types:

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ name: "CodeQL"
1414
on:
1515
schedule:
1616
- cron: '59 10 27 * *'
17-
# push:
18-
# branches: [ "master" ]
19-
# pull_request:
20-
# branches: [ "master" ]
21-
# types: [opened, reopened, synchronize, ready_for_review]
17+
push:
18+
branches: [ "master" ]
19+
pull_request:
20+
branches: [ "master" ]
21+
types: [opened, reopened, synchronize, ready_for_review]
2222
# workflow_run:
2323
# workflows: [Test Changes]
2424
# types:

.github/workflows/test-changes.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -202,21 +202,24 @@ jobs:
202202
cd docs
203203
sphinx-build -W -b singlehtml -d ../build/doctrees . ../build/singlehtml
204204
205-
call-workflow-codeql:
206-
needs: test-source-code
207-
uses: ./.github/workflows/codeql-analysis.yml
208-
permissions:
209-
actions: read
210-
contents: read
211-
pull-requests: write
212-
security-events: write
213-
214-
call-workflow-codacity:
215-
needs: test-source-code
216-
uses: ./.github/workflows/codacy-analysis.yml
217-
permissions:
218-
actions: read
219-
contents: read
220-
pull-requests: write
221-
security-events: write
205+
# TODO: 1 configuration not found: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview
206+
# call-workflow-codeql:
207+
# needs: test-source-code
208+
# uses: ./.github/workflows/codeql-analysis.yml
209+
# permissions:
210+
# actions: read
211+
# contents: read
212+
# pull-requests: write
213+
# security-events: write
214+
# secrets: inherit # pass all secrets
215+
216+
# call-workflow-codacity:
217+
# needs: test-source-code
218+
# uses: ./.github/workflows/codacy-analysis.yml
219+
# permissions:
220+
# actions: read
221+
# contents: read
222+
# pull-requests: write
223+
# security-events: write
224+
# secrets: inherit # pass all secrets
222225

0 commit comments

Comments
 (0)