Skip to content

🐛 fix: use static permissions in update-demos workflow#2805

Merged
openshift-merge-bot[bot] merged 1 commit into
operator-framework:mainfrom
pedjak:fix-asciinema-workflow
Jul 6, 2026
Merged

🐛 fix: use static permissions in update-demos workflow#2805
openshift-merge-bot[bot] merged 1 commit into
operator-framework:mainfrom
pedjak:fix-asciinema-workflow

Conversation

@pedjak

@pedjak pedjak commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

GitHub Actions does not support expressions in the permissions block.
The dynamic expression introduced in #2801 was causing every update-demos
workflow run to fail with "workflow file issue" before any job could start.

This changes contents: ${{ github.event_name == 'push' && 'write' || 'read' }}
to static contents: write (matching the pages.yaml convention). The deploy
step is already gated by if: github.event_name == 'push', so the write
permission on PR runs is unused.

Failed runs:

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

GitHub Actions does not support expressions in the permissions block.
The dynamic expression was causing every workflow run to fail with
"workflow file issue" before any job could start.

Use static contents:write (matching pages.yaml convention). The deploy
step is already gated by `if: github.event_name == 'push'`.

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 6, 2026 14:06
@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 7b6f3d0
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/6a4bb65086c40e000883f20d
😎 Deploy Preview https://deploy-preview-2805--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the update-demos GitHub Actions workflow so it can run again by removing an unsupported expression from the permissions block (which was preventing workflow runs from starting at all).

Changes:

  • Replaced dynamic contents permission expression with a static contents: write value.
  • Restored workflow validity so update-demos can execute (deploy remains gated to push via an existing if: condition).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2026
@openshift-ci

openshift-ci Bot commented Jul 6, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: perdasilva, rashmigottipati

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 6, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit a918ca8 into operator-framework:main Jul 6, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants