diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a3e32ac --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,50 @@ +version: 2 + +updates: + # 1) GitHub Actions + - package-ecosystem: github-actions + directory: / # GitHub scans .github/workflows from here + schedule: + interval: weekly + day: monday + time: "03:00" + open-pull-requests-limit: 5 + assignees: ["alainncls"] + labels: ["dependencies", "github-actions"] + commit-message: + prefix: "deps(actions)" + include: "scope" + groups: + core-actions-minor-patch: + update-types: ["minor", "patch"] + patterns: + - "actions/*" + - "github/*" + third-party-actions-minor-patch: + update-types: ["minor", "patch"] + patterns: + - "*" + exclude-patterns: + - "actions/*" + - "github/*" + cooldown: + default-days: 7 + + # 2) npm dependencies (package.json) + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + day: monday + time: "04:00" + open-pull-requests-limit: 5 + assignees: ["alainncls"] + labels: ["dependencies", "npm"] + commit-message: + prefix: "deps(npm)" + include: "scope" + groups: + npm-minor-patch: + update-types: ["minor", "patch"] + cooldown: + default-days: 7 diff --git a/.github/workflows/build-lint.yml b/.github/workflows/build-lint.yml index e101526..cb71a21 100644 --- a/.github/workflows/build-lint.yml +++ b/.github/workflows/build-lint.yml @@ -8,13 +8,20 @@ on: branches: - main +permissions: {} # lock everything by default (least-privilege) + jobs: build-lint: + name: Build & Lint runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Check out the repo uses: actions/checkout@v6 + with: + persist-credentials: false - name: Install Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/security-code-scanner.yml b/.github/workflows/security-code-scanner.yml index 5cd10c2..221e83b 100644 --- a/.github/workflows/security-code-scanner.yml +++ b/.github/workflows/security-code-scanner.yml @@ -15,6 +15,8 @@ on: required: false workflow_dispatch: +permissions: {} # lock everything by default (least-privilege) + jobs: security-scan: uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@v2