ci: make git credentials non-persistent

With this setting enabled, Git credentials are not kept after checkout.
Credentials are not necessary after the checkout step since we do not
do any further manual push/pull operations.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-02-24 17:20:15 +01:00 committed by Marti Bolivar
commit 6539ac752e
3 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,7 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 fetch-depth: 0
persist-credentials: false
- name: Environment Setup - name: Environment Setup
run: | run: |

View file

@ -15,6 +15,7 @@ jobs:
path: zephyrproject/zephyr path: zephyrproject/zephyr
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 fetch-depth: 0
persist-credentials: false
- name: Manifest - name: Manifest
uses: zephyrproject-rtos/action-manifest@2f1ad2908599d4fe747f886f9d733dd7eebae4ef uses: zephyrproject-rtos/action-manifest@2f1ad2908599d4fe747f886f9d733dd7eebae4ef

View file

@ -54,6 +54,7 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 fetch-depth: 0
persist-credentials: false
- name: Environment Setup - name: Environment Setup
if: github.event_name == 'pull_request_target' if: github.event_name == 'pull_request_target'
@ -137,6 +138,7 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 fetch-depth: 0
persist-credentials: false
- name: Environment Setup - name: Environment Setup
run: | run: |