File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ inputs:
1313
1414runs :
1515  using : ' composite' 
16+   permissions : {} 
1617
1718  steps :
1819    - name : Set GitHub Path 
@@ -29,11 +30,15 @@ runs:
2930    - name : Download ArkScript release 
3031      shell : sh 
3132      run : download.sh "${{ inputs.version }}" "${{ inputs.os }}" 
33+       env :
34+         GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
3235
3336    - name : Download latest ArkScript stdlib 
3437      if : ${{ inputs.stdlib_update }} != 'no' 
3538      shell : bash 
3639      run : download-stdlib.sh 
40+       env :
41+         GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
3742
3843    - name : Test install 
3944      shell : bash 
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- curl https://github.com/ArkScript-lang/std/archive/refs/heads/master.zip -O -J -L
3+ curl  -H  " Authorization: token  $GITHUB_TOKEN "   https://github.com/ArkScript-lang/std/archive/refs/heads/master.zip -O -J -L
44unzip -oq std-master.zip " std-master/*.ark" " std-master/tests/*" 
55
66rm std-master.zip
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ if [[ "$VERSION" != "latest" ]]; then
2626  URL=" https://api.github.com/repos/ArkScript-lang/Ark/releases/tags/$VERSION " 
2727fi 
2828
29- API_OUTPUT=$( curl -s " $URL " ) 
29+ API_OUTPUT=$( curl -s -H  " Authorization: token  $GITHUB_TOKEN "   " $URL " ) 
3030if  [[ $( echo -ne " $API_OUTPUT " |  grep " status.*404" ) !=  " " ;  then 
3131  echo  " Release '$VERSION ' not found" 
3232  exit  1
3333fi 
3434
3535ASSET_PATH=$( echo -ne " $API_OUTPUT " |  grep " browser_download_url.*${ASSET} .zip" |  cut -d :  -f 2,3 |  tr -d \"  |  tr -d "  " ) 
36- curl " $ASSET_PATH " 
36+ curl -H  " Authorization: token  $GITHUB_TOKEN "   " $ASSET_PATH " 
3737
3838mkdir -p .arkscript
3939unzip -oq " ${ASSET} .zip" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments