Update permissions in GitHub Actions workflow
Adjusted permissions for jobs in the workflow file to ensure appropriate access levels. Updated global and job-specific permissions for better security and functionality.
This commit is contained in:
1 parent
c70eb40236
commit
742240c8c8
1 file changed
+13
-5
@@ -13,18 +13,20 @@ on:
|
||||
default: "200000"
|
||||
type: string
|
||||
|
||||
# Add permissions for the workflow
|
||||
permissions:
|
||||
contents: write
|
||||
actions: read
|
||||
|
||||
env:
|
||||
# Default domain count (can be overridden by workflow input)
|
||||
DOMAIN_COUNT: ${{ github.event.inputs.domain_count || '200000' }}
|
||||
|
||||
# Global permissions for the workflow
|
||||
permissions:
|
||||
contents: write
|
||||
actions: write
|
||||
|
||||
jobs:
|
||||
validate-input:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Validate domain count input
|
||||
run: |
|
||||
@@ -38,6 +40,9 @@ jobs:
|
||||
fetch-domain-list:
|
||||
runs-on: ubuntu-latest
|
||||
needs: validate-input
|
||||
permissions:
|
||||
contents: read
|
||||
actions: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -67,6 +72,9 @@ jobs:
|
||||
process-favicons-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: fetch-domain-list
|
||||
permissions:
|
||||
contents: write
|
||||
actions: read
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
Reference in new issue
Block a user