mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-14 13:27:38 -07:00
f6727cc14f
Adds 'packages: read' permission to the 'ci.yml' and 'e2e.yml' workflows. This is necessary to allow the jobs to download packages from the GitHub Packages registry, fixing the 403 Forbidden error during 'npm install'. Also renames the 'orchestrator.yml' workflow from 'PR Checks' to 'Checks' for brevity.
45 lines
917 B
YAML
45 lines
917 B
YAML
# .github/workflows/pr-checks.yml
|
|
name: 'Checks'
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
- 'release/**'
|
|
merge_group:
|
|
|
|
permissions:
|
|
contents: 'read'
|
|
packages: 'write'
|
|
pull-requests: 'write'
|
|
security-events: 'write'
|
|
checks: 'write'
|
|
statuses: 'write'
|
|
actions: 'read'
|
|
attestations: 'read'
|
|
deployments: 'read'
|
|
discussions: 'read'
|
|
issues: 'read'
|
|
pages: 'read'
|
|
repository-projects: 'read'
|
|
id-token: 'write'
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
name: 'Build and Publish CI Bundle'
|
|
uses: './.github/workflows/build-and-publish.yml'
|
|
|
|
ci:
|
|
name: 'CI Checks'
|
|
needs: 'build-and-publish'
|
|
uses: './.github/workflows/ci.yml'
|
|
with:
|
|
version: '${{ needs.build-and-publish.outputs.version }}'
|
|
|
|
e2e:
|
|
name: 'E2E Checks'
|
|
needs: 'build-and-publish'
|
|
uses: './.github/workflows/e2e.yml'
|
|
with:
|
|
version: '${{ needs.build-and-publish.outputs.version }}'
|