Skip to content

Commit

Permalink
ci: pip requirements workflow
Browse files Browse the repository at this point in the history
* Adding `persist-credentials: false` to the checkout step
* Dropping checkout -> switch steps for checkout with ref

Signed-off-by: Sebastian Wezel <sebastian.wezel@nordicsemi.no>
  • Loading branch information
DatGizmo authored and carlescufi committed Nov 2, 2023
1 parent d58f6c9 commit c3d0321
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/pip-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@ jobs:
- name: Checkout PR target branch
uses: actions/checkout@v4
with:
token: ${{ secrets.NCS_GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
path: ncs/nrf
fetch-depth: 1

- name: Switch to PR source branch
working-directory: ncs/nrf
env:
GITHUB_TOKEN: ${{ secrets.NCS_GITHUB_TOKEN }}
run: gh pr checkout ${{ github.event.pull_request.number }}
persist-credentials: false

- name: Get python version
id: pyv
Expand Down

0 comments on commit c3d0321

Please sign in to comment.