Skip to content

On new PR

On new PR #295

Workflow file for this run

name: On new PR
on:
workflow_run:
workflows: ["Record PR details"]
types:
- completed
permissions:
pull-requests: write
jobs:
get_pr_details:

Check failure on line 13 in .github/workflows/on_opened_pr.yml

View workflow run for this annotation

GitHub Actions / On new PR

Invalid workflow file

The workflow is not valid. .github/workflows/on_opened_pr.yml (Line: 13, Col: 3): Error calling workflow 'aws-samples/aws-serverless-developer-experience-workshop-python/.github/workflows/reusable_export_pr_details.yml@418b3d0d024c7cb6feaa746a4c42f00ec387baa4'. The workflow is requesting 'contents: read', but is only allowed 'contents: none'. .github/workflows/on_opened_pr.yml (Line: 13, Col: 3): Error calling workflow 'aws-samples/aws-serverless-developer-experience-workshop-python/.github/workflows/reusable_export_pr_details.yml@418b3d0d024c7cb6feaa746a4c42f00ec387baa4'. The nested job 'export_pr_details' is requesting 'actions: read', but is only allowed 'actions: none'.
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/reusable_export_pr_details.yml
with:
record_pr_workflow_id: ${{ github.event.workflow_run.id }}
workflow_origin: ${{ github.event.repository.full_name }}
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
check_related_issue:
needs: get_pr_details
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: "Ensure related issue is present"
uses: actions/github-script@v7
env:
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
PR_ACTION: ${{ needs.get_pr_details.outputs.prAction }}
PR_AUTHOR: ${{ needs.get_pr_details.outputs.prAuthor }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('.github/scripts/label_missing_related_issue.js')
await script({github, context, core})
check_acknowledge_section:
needs: get_pr_details
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: "Ensure acknowledgement section is present"
uses: actions/github-script@v7
env:
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
PR_ACTION: ${{ needs.get_pr_details.outputs.prAction }}
PR_AUTHOR: ${{ needs.get_pr_details.outputs.prAuthor }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('.github/scripts/label_missing_acknowledgement_section.js')
await script({github, context, core})