Skip to content

Commit 1f3ba13

Browse files
authored
Attempt to fix qatest.yaml CodeQL issues (#3987)
1 parent 04c0bc1 commit 1f3ba13

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
qatest.yaml -text eol=crlf

.github/workflows/qatest.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Run QA Test # Runs automated tests on a self-hosted QA machine
2+
permissions:
3+
contents: read
4+
#pull-requests: write # maybe need to re-add this later
25

36
on:
47
workflow_run:
@@ -15,11 +18,14 @@ jobs:
1518
runs-on: ubuntu-latest
1619
steps:
1720
- name: Debug Workflow Variables
21+
env:
22+
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
23+
HEAD_COMMIT_MSG: ${{ github.event.workflow_run.head_commit.message }}
1824
run: |
1925
echo "Workflow Conclusion: ${{ github.event.workflow_run.conclusion }}"
20-
echo "Workflow Head Branch: ${{ github.event.workflow_run.head_branch }}"
26+
echo "Workflow Head Branch: $HEAD_BRANCH"
2127
echo "Workflow Run ID: ${{ github.event.workflow_run.id }}"
22-
echo "Head Commit Message: ${{ github.event.workflow_run.head_commit.message }}"
28+
echo "Head Commit Message: $HEAD_COMMIT_MSG"
2329
echo "GitHub Ref: ${{ github.ref }}"
2430
echo "GitHub Ref Name: ${{ github.ref_name }}"
2531
echo "GitHub Event Name: ${{ github.event_name }}"

0 commit comments

Comments
 (0)