-
Notifications
You must be signed in to change notification settings - Fork 9
refactor: migrate to centralized actions from cap-java/.github #842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,24 +8,7 @@ on: | |||||||||||||||||||||
| - opened | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||
| label_issues: | ||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||
| label: | ||||||||||||||||||||||
| uses: cap-java/.github/.github/workflows/issue.yml@feat/centralized-actions-workflows | ||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||
| issues: write | ||||||||||||||||||||||
|
Comment on lines
+11
to
14
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Reusable workflow called without passing When a caller workflow uses Should add
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - run: gh issue edit "$NUMBER" --add-label "$LABELS" | ||||||||||||||||||||||
| env: | ||||||||||||||||||||||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||
| GH_REPO: ${{ github.repository }} | ||||||||||||||||||||||
| NUMBER: ${{ github.event.issue.number }} | ||||||||||||||||||||||
| LABELS: New | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| script: | | ||||||||||||||||||||||
| github.rest.issues.createComment({ | ||||||||||||||||||||||
| issue_number: context.issue.number, | ||||||||||||||||||||||
| owner: context.repo.owner, | ||||||||||||||||||||||
| repo: context.repo.repo, | ||||||||||||||||||||||
| body: `👋 Hello @${context.payload.issue.user.login}, thank you for submitting this issue. Our team is reviewing your report and will follow up with you as soon as possible.` | ||||||||||||||||||||||
| }) | ||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The
CF Loginstep delegates to a cross-repository action pinned to a feature branch, not a stable refThe reference
cap-java/.github/actions/cf-login@feat/centralized-actions-workflowsis a mutable branch tip. If that branch is force-pushed or rebased, the action will run a different (possibly broken) version without any notice. Additionally, cross-repository composite actionuses:references are only supported when the referenced repository is in the same GitHub organization, and branch refs have no integrity guarantee.Per the PR description, this should eventually be updated to
@mainonce the central repo PR is merged. Make sure this is done before production use, or pin to a specific commit SHA.Please provide feedback on the review comment by checking the appropriate box: