Skip to content

downgrade version v0.82.10 and add validation#1626

Merged
v1v merged 4 commits into
mainfrom
fix/missing-references
Jul 22, 2026
Merged

downgrade version v0.82.10 and add validation#1626
v1v merged 4 commits into
mainfrom
fix/missing-references

Conversation

@v1v

@v1v v1v commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

As part of github/gh-aw#47285 , let's downgrade and add a validation

Validation

make compile          # sync triggers + compile to lock files
make lint             # run all linters

Pre-Completion Checklist

  • Re-read the issue or request and confirmed this PR directly addresses it
  • Reviewed all changed files for correctness
  • Ran make compile and make lint with no errors
  • Verified no unrelated files were modified

@v1v
v1v requested a review from fr4nc1sc0-r4m0n July 22, 2026 11:49
@v1v v1v self-assigned this Jul 22, 2026

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n 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.

LGTM

@github-actions github-actions Bot added the medium_boom Medium PR blast radius; likely benefits from human review label Jul 22, 2026

@github-actions github-actions Bot 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.

Request changes: the new validation can silently miss invalid uses references in standard workflow steps and on macOS.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.


What is this? | From workflow: Trigger PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

while IFS= read -r match; do
invalid_count=$((invalid_count + 1))
echo "Invalid uses reference: ${workflow_file#$REPO_ROOT/}:$match"
done < <(grep -nE '^[[:space:]]*uses:[[:space:]]+[^[:space:]#]+@[[:space:]]*(#.*)?$' "$workflow_file" || true)

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.

[P1] Match the standard - uses: step form\n\nGitHub Actions steps are normally written as - uses: owner/action@ref, but this expression anchors at the start of uses: and therefore skips the leading list marker. The repository already uses that form (for example, .github/workflows/ci.yml:16), so an invalid - uses: ruby/setup-ruby@ can pass this validation and reach GitHub unchanged. Allow the optional list marker before uses:.

invalid_count=$((invalid_count + 1))
echo "Invalid uses reference: ${workflow_file#$REPO_ROOT/}:$match"
done < <(grep -nE '^[[:space:]]*uses:[[:space:]]+[^[:space:]#]+@[[:space:]]*(#.*)?$' "$workflow_file" || true)
done < <(find "$WORKFLOWS_DIR" -maxdepth 1 \( -name '*.yml' -o -name '*.yaml' \) -print0)

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.

[P1] Avoid GNU-only find options here\n\nThe Makefile supports macOS, but BSD /usr/bin/find does not implement -maxdepth. In that environment this process substitution emits the find error and yields no files; because the process-substitution status is not propagated, invalid_count remains zero and the validator exits successfully. An invalid workflow reference can therefore bypass the guard on macOS.

@v1v
v1v merged commit b116ef2 into main Jul 22, 2026
26 checks passed
@v1v
v1v deleted the fix/missing-references branch July 22, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

medium_boom Medium PR blast radius; likely benefits from human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants