Skip to content

Commit 165d4ba

Browse files
smuppandmanasab-qli
authored andcommitted
CI: Add GitHub Actions workflows for ShellCheck and script permission enforcement
- Support for pull_request, pull_request_target (on main), push (to main), and workflow_dispatch Signed-off-by: Srikanth Muppandam <[email protected]>
1 parent a7d3701 commit 165d4ba

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/check-executable-permissions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Enforce Script Executable Permissions
22

33
on:
4-
pull_request:
4+
pull_request_target:
5+
branches: [ "main" ]
56
paths:
67
- '**/run.sh'
78
- '**/*.sh'
9+
push:
10+
branches: [ "main" ]
11+
workflow_dispatch:
812

913
jobs:
1014
permissions:

.github/workflows/preflight-checker-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: qualcomm-linux/qli-actions/.github/workflows/multi-checker.yml@main
1616
with:
1717
repolinter: true # default: true
18-
semgrep: false # default: true
18+
semgrep: true # default: true
1919
copyright-license-detector: true # default: true
2020
pr-check-emails: true # default: true
2121

.github/workflows/shellcheck.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Shell Lint
22

3-
on: [pull_request, push]
3+
on:
4+
pull_request_target:
5+
branches: [ "main" ]
6+
push:
7+
branches: [ "main" ]
8+
workflow_dispatch:
49

510
jobs:
611
shellcheck:

0 commit comments

Comments
 (0)