Skip to content

[cherry-pick: release-v0.37.x] fix: add execute-bit check in FindPlugin - #3239

Merged
tekton-robot merged 1 commit into
release-v0.37.xfrom
cherry-pick-3203-to-release-v0.37.x
Sep 10, 2026
Merged

[cherry-pick: release-v0.37.x] fix: add execute-bit check in FindPlugin#3239
tekton-robot merged 1 commit into
release-v0.37.xfrom
cherry-pick-3203-to-release-v0.37.x

Conversation

@tekton-robot

Copy link
Copy Markdown
Contributor

This is a cherry-pick of #3203


Changes

Included execute-bit check in FindPlugin to only allow executable files. Earlier, FindPlugin uses os.Stat to check file existence in the plugin directory but did not verify the execute bit (Mode()&0o111). A non-executable file matchingtkn-<name>was being returned as a valid plugin path.

Added tests to verify this execute-bit check in FindPlugin.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

NONE

included execute-bit check in Plugin discovery to only allow executable files. Added tests to verify this execute-bit check.

Signed-off-by: Arvind <arvkrish@redhat.com>
Assisted-by: Cursor Grok 4.6
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Sep 10, 2026
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 10, 2026
@tekton-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: divyansh42

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 10, 2026
@pratap0007

Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 10, 2026
@tekton-robot
tekton-robot merged commit 35710a7 into release-v0.37.x Sep 10, 2026
19 of 21 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. release-note-none Denotes a PR that doesnt merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants