maziggy hace 4 meses
padre
commit
51df60cb91
Se han modificado 2 ficheros con 14 adiciones y 0 borrados
  1. 4 0
      .github/workflows/ci.yml
  2. 10 0
      .github/workflows/security.yml

+ 4 - 0
.github/workflows/ci.yml

@@ -18,6 +18,10 @@ concurrency:
   group: ${{ github.workflow }}-${{ github.ref }}
   cancel-in-progress: true
 
+# Minimum permissions for all jobs
+permissions:
+  contents: read
+
 jobs:
   # ============================================================================
   # Backend Checks

+ 10 - 0
.github/workflows/security.yml

@@ -11,10 +11,17 @@ env:
   PYTHON_VERSION: '3.11'
   NODE_VERSION: '20'
 
+# Default permissions for all jobs
+permissions:
+  contents: read
+
 jobs:
   backend-audit:
     name: Backend Security Audit
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      issues: write
     steps:
       - uses: actions/checkout@v4
 
@@ -111,6 +118,9 @@ jobs:
   frontend-audit:
     name: Frontend Security Audit
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      issues: write
     steps:
       - uses: actions/checkout@v4