Skip to content

ci(docker): don't supply permissions unless needed #4

ci(docker): don't supply permissions unless needed

ci(docker): don't supply permissions unless needed #4

Workflow file for this run

name: Docker
on:
schedule:
- cron: "15 14 * * *"
push:
paths:
- "Dockerfile"
- "src/**"
- "Cargo.lock"
- "Cargo.toml"
- ".dockerignore"
- ".github/workflows/docker.yml"
branches: ["main", "staging"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
docker:
uses: FyraLabs/actions/.github/workflows/docker.yml@main
with:
publish: ${{ github.event_name != 'pull_request' }}
permissions:
contents: read
packages: ${{ github.event_name != 'pull_request' && 'write' || 'none' }}

Check failure on line 28 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / Docker

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 28, Col: 17): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event_name != 'pull_request' && 'write' || 'none' .github/workflows/docker.yml (Line: 28, Col: 17): Unexpected value '${{ github.event_name != 'pull_request' && 'write' || 'none' }}'
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: ${{ github.event_name != 'pull_request' && 'write' || 'none' }}