Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/check_approvals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
runs-on: ubuntu-latest
# Skip draft PRs.
if: github.event.pull_request.draft == false && github.repository_owner == 'warpdotdev'
permissions:
contents: read # actions/checkout clones the repo so the script can read OWNERS and diff the changed files
pull-requests: write # `gh pr view` reads the PR's reviews, and `gh pr comment` posts the list of missing approvals
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
github.event.pull_request.draft == false &&
(!startsWith(github.event.pull_request.head.ref, 'repo-sync/') || contains(github.event.pull_request.labels.*.name, 'repo-sync:conflict')) &&
github.repository_owner == 'warpdotdev'
permissions:
contents: read # actions/checkout clones the repo
pull-requests: read # dorny/paths-filter asks the GitHub API for the PR's changed-files list to decide which CI jobs run; reading PR metadata needs this scope
outputs:
affects-database-schema: ${{ github.ref == 'master' || steps.filter.outputs.affects-database-schema }}
affects-rust-sources: ${{ github.ref == 'master' || steps.filter.outputs.affects-rust-sources }}
Expand Down
76 changes: 0 additions & 76 deletions .github/workflows/close_stale_fix_prs.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ on:
type: boolean
default: true

permissions:
contents: write # script/create_release_tag_and_branch pushes the release branch and tag; softprops/action-gh-release creates the GitHub release; each build job runs `gh release upload` to attach its artifacts

env:
CARGO_TERM_COLOR: always
CONFIG_FILE: ".github/workflows/release_configurations.json"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cut_new_release_candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
create_release_candidate:
name: Create Release Candidate
uses: ./.github/workflows/create_release.yml
permissions:
contents: write # create_release.yml pushes the release branch/tag and creates and uploads the GitHub release; a reusable-workflow caller must grant everything its callee declares
needs: compute_channel
with:
channel: ${{ needs.compute_channel.outputs.channel }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cut_new_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
create_release:
name: Create Release
uses: ./.github/workflows/create_release.yml
permissions:
contents: write # create_release.yml pushes the release branch/tag and creates and uploads the GitHub release; a reusable-workflow caller must grant everything its callee declares
needs: get_config
strategy:
fail-fast: false
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/delete_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
delete_release:
name: Delete Release Branch
runs-on: ubuntu-latest
permissions:
contents: write # `git push` renames the release branch to deleted/<branch> and deletes the original
steps:
- name: Verify confirmation
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/populate_build_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ jobs:
name: CI
if: github.repository_owner == 'warpdotdev'
uses: ./.github/workflows/ci.yml
permissions:
contents: read # ci.yml jobs clone the repo
id-token: write # ci.yml's tests jobs mint an OIDC token to authenticate to GCP
pull-requests: read # ci.yml's params job reads the PR changed-files list; a reusable-workflow caller must grant everything its callee's jobs declare
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
) &&
github.repository_owner == 'warpdotdev'
uses: warpdotdev/repo-sync/.github/workflows/restack.yml@main
permissions:
contents: write # repo-sync's restack workflow rebases and force-pushes the sync branches
pull-requests: write # it retargets the sync PRs and enables auto-merge on them
with:
repo_sync_ref: main
app_id: ${{ vars.REPO_SYNC_APP_ID }}
Expand All @@ -54,6 +57,9 @@ jobs:
startsWith(github.event.pull_request.head.ref, 'repo-sync/') &&
github.repository_owner == 'warpdotdev'
uses: warpdotdev/repo-sync/.github/workflows/approve.yml@main
permissions:
contents: write # repo-sync's approve workflow pushes conflict resolutions to the sync branch
pull-requests: write # it approves the sync PR and enables auto-merge
with:
repo_sync_ref: main
approver_app_id: ${{ vars.REPO_SYNC_APPROVER_APP_ID }}
Expand All @@ -65,6 +71,10 @@ jobs:
escalation:
if: inputs.action == 'escalation' && github.repository_owner == 'warpdotdev'
uses: warpdotdev/repo-sync/.github/workflows/escalation.yml@main
permissions:
actions: write # repo-sync's escalation workflow re-dispatches the restack workflow for stuck sync stacks
contents: read # it clones the repo to inspect the stack
pull-requests: write # it requests reviewers and disables auto-merge on the stuck sync PRs
with:
repo_sync_ref: main
app_id: ${{ vars.REPO_SYNC_APP_ID }}
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/warp_cleanup_fix_prs.yml

This file was deleted.

Loading