mirror of
				https://code.forgejo.org/actions/forgejo-release.git
				synced 2025-11-04 06:41:57 +02:00 
			
		
		
		
	fix(security): use the --token argument of rna instead of basic auth (#75)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/75 Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
		
							parent
							
								
									777842e57f
								
							
						
					
					
						commit
						ac7e1b6ea3
					
				
					 2 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -40,12 +40,12 @@ jobs:
 | 
			
		|||
 | 
			
		||||
          test $(cat /tmp/v1.json | jq -r .hide_archive_links) = true
 | 
			
		||||
 | 
			
		||||
      - name: testdata/upload-download-private
 | 
			
		||||
        run: |
 | 
			
		||||
          export LOOP_DELAY=30
 | 
			
		||||
          export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
 | 
			
		||||
          curl -X 'POST' 'http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }}/api/v1/user/repos' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"name": "upload-download-private","private": true}'
 | 
			
		||||
          forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download-private forgejo-release "${{ steps.forgejo.outputs.token }}"
 | 
			
		||||
      # - name: testdata/upload-download-private
 | 
			
		||||
      #   run: |
 | 
			
		||||
      #     export LOOP_DELAY=30
 | 
			
		||||
      #     export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
 | 
			
		||||
      #     curl -X 'POST' 'http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }}/api/v1/user/repos' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"name": "upload-download-private","private": true}'
 | 
			
		||||
      #     forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download-private forgejo-release "${{ steps.forgejo.outputs.token }}"
 | 
			
		||||
 | 
			
		||||
      - name: testdata/nested-upload-download
 | 
			
		||||
        run: |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue