Skip to content

Commit 6eb0a2e

Browse files
[CERT-210] Fix execution on pull request (#103)
* [CERT-210] Fix execution on pull request * [CERT-210] Dummy change
1 parent 8ddfc61 commit 6eb0a2e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/on-pullrequest.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
- 'bruno/**'
88
- '.github/workflows/on-pullrequest-codeql-analysis.yml'
99
- '.github/workflows/on-pullrequest-bidi-scan.yml'
10-
10+
1111
push:
1212
branches: [ main ]
13-
13+
1414
permissions: read-all
1515

1616

@@ -25,18 +25,23 @@ jobs:
2525
dependency-review:
2626
name: Dependency Review ("Dependabot on PR")
2727
runs-on: ubuntu-latest
28+
if: github.event_name == 'pull_request'
2829
permissions:
2930
contents: read
3031
steps:
3132
- name: Checkout
3233
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
33-
34+
3435
- name: Dependencies Review
3536
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3
3637

3738
analyze:
3839
name: CodeQL Analysis
3940
runs-on: ubuntu-latest
41+
permissions:
42+
actions: read
43+
contents: read
44+
security-events: write
4045
steps:
4146
- name: Checkout
4247
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

bruno/scripts/lint-bruno.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ const bruFiles = walk(ROOT).filter(f => {
175175
const normalizedPath = f.replace(/\\/g, '/');
176176
return /(^|\/)(SIS|Sample Data|Assessment)(\/|$)/.test(normalizedPath);
177177
});
178+
178179
bruFiles.forEach(lintFile);
179180

180181
SUMMARY.problems = problems.length;

0 commit comments

Comments
 (0)