Skip to content

CI - PR

CI - PR #3

Workflow file for this run

name: CI - PR
on:
workflow_dispatch:
pull_request_target:
branches: [main]
types: [reopened, synchronize, opened]
permissions:
contents: read
actions: read
security-events: write
jobs:
requires-approval:
runs-on: ubuntu-latest
name: "Waiting for PR approval as this workflow runs on pull_request_target"
if: github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.owner.login != 'cap-java'
environment: pr-approval
steps:
- name: Approval Step
run: echo "This job has been approved!"
build-and-test:

Check failure on line 24 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / CI - PR

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 24, Col: 3): Error calling workflow 'cap-java/cds-feature-ai/.github/workflows/pipeline.yml@fd79326bbb16d242dcd43ef38246feab575194c7'. The nested job 'codeql' is requesting 'packages: read', but is only allowed 'packages: none'.
needs: requires-approval
if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped')
uses: ./.github/workflows/pipeline.yml
with:
deploy-snapshot: false
secrets: inherit