Skip to content

gh aw new safe-outputs are not always valid #21978

@kbreit-insight

Description

@kbreit-insight

I am trying to create a new workflow and found that selecting certain default safe outputs result in an error.

.github/workflows/test-workflow.md:47:18: error: Multiple schema validation failures:
- 'safe-outputs/create-project' (line 47, col 18): 'create-project': 'oneOf' failed, subschemas 1, 2 matched
- 'safe-outputs' (line 51, col 3): Unknown property: push-repo-memory. Valid fields are: activation-comments, add-comment, add-labels, add-reviewer, allowed-domains, allowed-github-references, assign-milestone, assign-to-agent, assign-to-user, autofix-code-scanning-alert, ...
44 |   hide-comment:
45 |   set-issue-type:
46 |   update-project:
47 |   create-project:
48 |   create-project-status-update:
49 |   autofix-code-scanning-alert:
50 |   mark-pull-request-as-ready-for-review:

✗ Compilation failed: compilation failed
✗ failed to compile workflow
  compilation failed

I've seen this problem with the following safe-outputs:

  • create-project
  • push-repo-memory
❯ gh extension list
NAME   REPO          VERSION
gh aw  github/gh-aw  v0.62.0

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions