Skip to content

Commit 0e87e29

Browse files
committed
Add the github app token to CI sync-cac-oscal for getting pr
Signed-off-by: Sophia Wang <[email protected]>
1 parent 9204296 commit 0e87e29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/sync-cac-oscal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ jobs:
163163
# Step 10: Check if there is any existing open PR
164164
- name: Check if there is any existing open PR
165165
run: |
166+
cd oscal-content
166167
# Use the GitHub CLI to search for an open PR.
167168
# The 'jq' query filters for PRs where the branch name contains "sync_cac_pr".
168169
# We take the first result found.
@@ -176,6 +177,8 @@ jobs:
176177
BRANCH_NAME="sync_cac_pr${{ env.PR_NUMBER }}"
177178
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
178179
fi
180+
env:
181+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
179182
# Step 11: Check if the OSCAL content branch exists
180183
- name: Check if the OSCAL content branch exists
181184
if: ${{ env.CHANGE_FOUND == 'true' }}

0 commit comments

Comments
 (0)