From 3172a327b4f156c6d8f2a43105ef36a99c7b0c71 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 6 May 2024 16:43:20 -0700 Subject: [PATCH] chore: update template-oss files for main branch --- .github/dependabot.yml | 14 ++++++++++++++ .github/settings.yml | 14 ++++++++++++++ .github/workflows/ci-release.yml | 2 +- .github/workflows/ci.yml | 1 + .github/workflows/codeql-analysis.yml | 2 ++ .github/workflows/release.yml | 2 +- 6 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 95657d9..7ecb4bd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,3 +3,17 @@ version: 2 updates: + - package-ecosystem: npm + directory: / + schedule: + interval: daily + target-branch: "main" + allow: + - dependency-type: direct + versioning-strategy: increase-if-necessary + commit-message: + prefix: deps + prefix-development: chore + labels: + - "Dependencies" + open-pull-requests-limit: 10 diff --git a/.github/settings.yml b/.github/settings.yml index 98fd681..c742871 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -11,3 +11,17 @@ repository: enable_vulnerability_alerts: true branches: + - name: main + protection: + required_status_checks: null + enforce_admins: true + block_creations: true + required_pull_request_reviews: + required_approving_review_count: 1 + require_code_owner_reviews: true + require_last_push_approval: true + dismiss_stale_reviews: true + restrictions: + apps: [] + users: [] + teams: [ "cli-team" ] diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index cc51d30..48564b0 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -8,7 +8,7 @@ on: ref: required: true type: string - default: master + default: main workflow_call: inputs: ref: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e57a72..12cb35d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: pull_request: push: branches: + - main schedule: # "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1 - cron: "0 9 * * 1" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5a5a3e6..13efe1b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,8 +5,10 @@ name: CodeQL on: push: branches: + - main pull_request: branches: + - main schedule: # "At 10:00 UTC (03:00 PT) on Monday" https://crontab.guru/#0_10_*_*_1 - cron: "0 10 * * 1" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b4feeb..2761782 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ name: Release on: push: branches: - + - main permissions: contents: write