Skip to content

Added permissions

Added permissions #2

name: Deploy to Staging
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:

Check failure on line 10 in .github/workflows/staging-deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to Staging

Invalid workflow file

The workflow is not valid. .github/workflows/staging-deploy.yml (Line: 10, Col: 3): Error calling workflow 'lambda-feedback/evaluation-function-workflows/.github/workflows/deploy.yml@main'. The nested job 'setup' is requesting 'contents: read', but is only allowed 'contents: none'.
permissions:
packages: write
id-token: write
uses: lambda-feedback/evaluation-function-workflows/.github/workflows/deploy.yml@main
with:
template-repository-name: "lambda-feedback/evaluation-function-boilerplate-python"
build-platforms: "aws"
environment: "staging"
lfs: false
secrets:
aws-key-id: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_ID }}
aws-secret-key: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_SECRET}}
function-admin-api-key: ${{ secrets.FUNCTION_ADMIN_API_KEY}}
gcp_credentials: ${{ secrets.GCP_DEPLOY }}