File tree Expand file tree Collapse file tree 4 files changed +20
-24
lines changed Expand file tree Collapse file tree 4 files changed +20
-24
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,14 @@ jobs:
58
58
/*
59
59
!.github
60
60
61
- - name : Get Scripts
61
+ # To avoid giving unknown scripts elevated permissions, download them from the master branch
62
+ - name : Get CI scripts from master
62
63
if : ${{ steps.check-build.outputs.enabled == 'true' }}
63
64
run : |
64
65
mkdir -p .github
65
66
cd .github
66
67
curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
67
68
68
- - name : Cat scripts
69
- if : ${{ steps.check-build.outputs.enabled == 'true' }}
70
- run : |
71
- cat .github/scripts/tests_build.sh
72
-
73
69
- name : Get libs cache
74
70
uses : actions/cache@v4
75
71
if : ${{ steps.check-build.outputs.enabled == 'true' }}
Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ jobs:
60
60
/*
61
61
!.github
62
62
63
- - name : Checkout Scripts
63
+ # To avoid giving unknown scripts elevated permissions, download them from the master branch
64
+ - name : Get CI scripts from master
64
65
if : ${{ steps.check-tests.outputs.enabled == 'true' }}
65
- uses : actions/checkout@v4
66
- with :
67
- persist-credentials : false
68
- sparse-checkout-cone-mode : false
69
- sparse-checkout : .github/*
66
+ run : |
67
+ mkdir -p .github
68
+ cd .github
69
+ curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
70
70
71
71
# setup-python currently only works on ubuntu images
72
72
# - uses: actions/setup-python@v5
Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ jobs:
56
56
/*
57
57
!.github
58
58
59
- - name : Checkout Scripts
59
+ # To avoid giving unknown scripts elevated permissions, download them from the master branch
60
+ - name : Get CI scripts from master
60
61
if : ${{ steps.check-tests.outputs.enabled == 'true' }}
61
- uses : actions/checkout@v4
62
- with :
63
- persist-credentials : false
64
- sparse-checkout-cone-mode : false
65
- sparse-checkout : .github/*
62
+ run : |
63
+ mkdir -p .github
64
+ cd .github
65
+ curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
66
66
67
67
- uses : actions/setup-python@v5
68
68
if : steps.check-tests.outputs.enabled == 'true'
Original file line number Diff line number Diff line change @@ -64,13 +64,13 @@ jobs:
64
64
/*
65
65
!.github
66
66
67
- - name : Checkout Scripts
67
+ # To avoid giving unknown scripts elevated permissions, download them from the master branch
68
+ - name : Get CI scripts from master
68
69
if : ${{ steps.check-tests.outputs.enabled == 'true' }}
69
- uses : actions/checkout@v4
70
- with :
71
- persist-credentials : false
72
- sparse-checkout-cone-mode : false
73
- sparse-checkout : .github/*
70
+ run : |
71
+ mkdir -p .github
72
+ cd .github
73
+ curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
74
74
75
75
- uses : actions/setup-python@v5
76
76
if : steps.check-tests.outputs.enabled == 'true'
You can’t perform that action at this time.
0 commit comments