Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions .github/workflows/qcom-preflight-checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Qualcomm Preflight Checks
workflow_content = """name: Qualcomm Preflight Checks

on:
pull_request_target:
branches:
Expand All @@ -13,18 +14,30 @@ on:
workflow_dispatch:

permissions:
contents: read
security-events: write
contents: read
security-events: write

jobs:
qcom-preflight-checks:
uses: qualcomm/qcom-reusable-workflows/.github/workflows/[email protected]
with:
# ✅ Preflight Checkers
repolinter: true # default: true
semgrep: true # default: true
copyright-license-detector: true # default: true
pr-check-emails: true # default: true
dependency-review: true # default: true
repolinter: true
semgrep: true
copyright-license-detector: true
pr-check-emails: true
dependency-review: true
secrets:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
"""

# Create the workflow file in the appropriate directory
import os

workflow_dir = ".github/workflows"
os.makedirs(workflow_dir, exist_ok=True)

workflow_path = os.path.join(workflow_dir, "preflight.yml")
with open(workflow_path, "w") as f:
f.write(workflow_content)

print(f"Workflow file created at: {workflow_path}")
Loading