[FR] Use Read token on branch status checks (#2598)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user