@@ -55,10 +55,10 @@ jobs:
55
55
PIP_EXTRA_INDEX_URL : " https://dl.espressif.com/pypi"
56
56
steps :
57
57
- id : create_token
58
- uses : tibdex/ github-app-token@v2
58
+ uses : actions/create- github-app-token@v1
59
59
with :
60
- app_id : " ${{ secrets.TOOLS_UPLOAD_APP_ID }}"
61
- private_key : " ${{ secrets.TOOLS_UPLOAD_APP_TOKEN }}"
60
+ app-id : ${{ secrets.APP_ID }}
61
+ private-key : ${{ secrets.APP_TOKEN }}
62
62
63
63
- name : List changed tools
64
64
shell : bash
@@ -74,10 +74,25 @@ jobs:
74
74
for tool in ${{ env.CHANGED_TOOLS }}; do
75
75
echo "tool $tool was changed"
76
76
done
77
- - name : Checkout repository
77
+
78
+ - name : Checkout user repository
78
79
uses : actions/checkout@v4
79
80
with :
80
81
token : ${{ steps.create_token.outputs.token }}
82
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
83
+ persist-credentials : false
84
+ sparse-checkout-cone-mode : false
85
+ sparse-checkout : |
86
+ /*
87
+ !.github
88
+
89
+ # To avoid giving unknown scripts elevated permissions, download them from the master branch
90
+ - name : Get CI scripts from master
91
+ run : |
92
+ mkdir -p .github
93
+ cd .github
94
+ curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
95
+
81
96
- name : Set up Python 3.8
82
97
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
83
98
if : inputs.os != 'ARM' && inputs.os != 'ARM64'
0 commit comments