mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	Set permissions for GitHub actions
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										3
									
								
								.github/workflows/codespell.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/codespell.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,6 +1,9 @@ | ||||
| --- | ||||
| name: Codespell | ||||
| on: [push, pull_request] | ||||
| permissions: | ||||
|   contents: read | ||||
|  | ||||
| jobs: | ||||
|   codespell: | ||||
|     name: Check for spelling errors | ||||
|   | ||||
							
								
								
									
										3
									
								
								.github/workflows/docker-3.1dev.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/docker-3.1dev.yml
									
									
									
									
										vendored
									
									
								
							| @@ -12,6 +12,9 @@ env: | ||||
|   BUILD_VERSION: "3.1dev" | ||||
|   DOCKER_CLI_EXPERIMENTAL: enabled | ||||
|  | ||||
| permissions: | ||||
|   contents: read | ||||
|  | ||||
| jobs: | ||||
|  | ||||
|   deploy: | ||||
|   | ||||
							
								
								
									
										3
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							| @@ -24,6 +24,9 @@ on: | ||||
|       - 'LICENSE' | ||||
|       - 'Dockerfile' | ||||
|  | ||||
| permissions: | ||||
|   contents: read | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ${{ matrix.os }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 naveensrinivasan
					naveensrinivasan