Skip to content

I definitely know how to use secrets properly #302

I definitely know how to use secrets properly

I definitely know how to use secrets properly #302

Workflow file for this run

on: [push]
name: Commit preview
jobs:
build-website:
uses: ./.github/workflows/build-website.yml
publish:
uses: ./.github/workflows/publish.yml
needs: build-website
secrets: inherit
comment-on-commit:
name: Add a comment on the commit
runs-on: ubuntu-latest
needs: build-website
permissions:
contents: read
steps:
- name: Comment on the Comment
if: ${{ secrets.COZY_PAT }} != ''

Check failure on line 21 in .github/workflows/commit-preview.yaml

View workflow run for this annotation

GitHub Actions / Commit preview

Invalid workflow file

The workflow is not valid. .github/workflows/commit-preview.yaml (Line: 21, Col: 17): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.COZY_PAT
uses: peter-evans/commit-comment@5a6f8285b8f2e8376e41fe1b563db48e6cf78c09 # v3.0.0
with:
token: ${{ secrets.COZY_PAT }}
repository: ${{ github.repository }}
sha: ${{ github.sha }}
body: "See preview on Cloudflare Pages: ${{ needs.publish.output.deployment-url }}"