[FR] Use Read token on branch status checks (#2598)

This commit is contained in:
Mika Ayenson
2023-02-24 09:17:07 -05:00
committed by GitHub
parent c3d8bac402
commit fd0120d98b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -69,6 +69,7 @@ jobs:
with:
token: ${{ secrets.PROTECTIONS_MACHINE_TOKEN }}
ref: main
fetch-depth: 100
- name: Set github config
run: |
@@ -77,7 +78,6 @@ jobs:
- name: Get branch histories
run: |
git fetch origin main --depth 100
git fetch origin ${{matrix.target_branch}} --depth 1
git status
git log -1 --format='%H'
@@ -22,6 +22,7 @@ jobs:
with:
url: "https://api.github.com/repos/elastic/detection-rules/actions/workflows/pythonpackage.yml/runs?per_page=1&branch=${{matrix.target_branch}}"
method: 'GET'
bearerToken: ${{ secrets.READ_ORG_TOKEN }}
- name: Check Backport Status
uses: actions/github-script@v6