Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci: use "protected branches" environment

Marc Klingen6b03507ca075
diff --git a/.github/workflows/dependabot-merge.yml b/.github/workflows/dependabot-merge.yml
index 043b7198d2..52135ee18b 100644
--- a/.github/workflows/dependabot-merge.yml
+++ b/.github/workflows/dependabot-merge.yml
@@ -11,6 +11,7 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
+ environment: "protected branches"
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
diff --git a/.github/workflows/dependabot-rebase-stale.yml b/.github/workflows/dependabot-rebase-stale.yml
index 79d85964c3..9623f7100f 100644
--- a/.github/workflows/dependabot-rebase-stale.yml
+++ b/.github/workflows/dependabot-rebase-stale.yml
@@ -9,6 +9,7 @@ on:
jobs:
rebase-dependabot:
runs-on: ubuntu-latest
+ environment: "protected branches"
steps:
- name: "Rebase open Dependabot PR"
uses: orange-buffalo/dependabot-auto-rebase@v1
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 18b634d6b5..565ffaad06 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -113,6 +113,7 @@ jobs:
push-docker-image:
needs: all-ci-passed
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
+ environment: "protected branches"
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index abaecdc7df..c843dced0a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -8,7 +8,7 @@ on:
jobs:
release:
runs-on: ubuntu-latest
- environment: "Release to production"
+ environment: "protected branches"
steps:
- uses: actions/checkout@v4
with: