Skip to content

ci: improve permission #86

ci: improve permission

ci: improve permission #86

Workflow file for this run

name: Apps Monorepo Deployment
on:
push:
branches:
- dev
- staging
- main
permissions:
id-token: write
contents: read
jobs:
changes:
name: Path filter
runs-on: ubuntu-latest
outputs:
www: ${{ steps.filter.outputs.www }}
app: ${{ steps.filter.outputs.app }}
steps:
- name: Checkout
uses: 'actions/checkout@v3'
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
filters: |
www:
- '.env.*'
- 'apps/www/**'
- 'packages/**'
app:
- '.env.*'
- 'apps/app/**'
- 'packages/**'
www-deploy:

Check failure on line 41 in .github/workflows/prepare.yml

View workflow run for this annotation

GitHub Actions / Apps Monorepo Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/prepare.yml (Line: 41, Col: 3): Error calling workflow 'menthorlabs/menthor/.github/workflows/deploy.yml@40d44b1517cee6239bf7cd3673632a0d9e39fd19'. The workflow is requesting 'deployments: write', but is only allowed 'deployments: none'.
needs: changes
if: ${{ needs.changes.outputs.www == 'true' }}
secrets: inherit
uses: ./.github/workflows/deploy.yml
with:
APP_NAME: www
app-deploy:
needs: changes
if: ${{ needs.changes.outputs.app == 'true' }}
secrets: inherit
uses: ./.github/workflows/deploy.yml
with:
APP_NAME: app