Skip to content

Commit 088acb9

Browse files
committed
changes
1 parent fac336c commit 088acb9

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
11
name: Validate SumoLogic Queries
22
on: [pull_request, push]
3-
permissions:
4-
contents: read
53

64
jobs:
75
validate-queries:
86
runs-on: ubuntu-latest
97
steps:
108
- uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0 # Required for git diff
11+
12+
- name: Debug filesystem
13+
run: |
14+
echo "Current directory: $(pwd)"
15+
ls -R
16+
echo "Checking scripts directory:"
17+
ls -la scripts/ || echo "No scripts directory found"
1118
1219
- name: Set up Python
1320
uses: actions/setup-python@v4
1421
with:
1522
python-version: "3.10"
1623

1724
- name: Install dependencies
18-
run: |
19-
pip install requests pyyaml
25+
run: pip install requests pyyaml
2026

2127
- name: Run validation
2228
env:
2329
SUMO_LOGIC_ACCESS_ID: ${{ secrets.SUMO_LOGIC_ACCESS_ID }}
2430
SUMO_LOGIC_ACCESS_KEY: ${{ secrets.SUMO_LOGIC_ACCESS_KEY }}
2531
run: |
26-
python ./scripts/validate_queries.py
32+
if [ -f "scripts/validate_queries.py" ]; then
33+
python scripts/validate_queries.py
34+
else
35+
echo "::error::Script not found at scripts/validate_queries.py"
36+
exit 1
37+
fi

scripts/sumologic_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@ def _check_results(self, job_id):
4444
response = self.session.get(f"{self.base_url}/search/jobs/{job_id}/messages")
4545
response.raise_for_status()
4646
return len(response.json()["messages"]) > 0
47-

0 commit comments

Comments
 (0)