Skip to content
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

Fix CodeQL Analysis #492

Closed
wants to merge 1 commit into from
Closed

Conversation

enarha
Copy link
Contributor

@enarha enarha commented Jun 1, 2023

Changes

CodeQL Analysis was recently enabled on Results, but it's failing with "fatal: not a git repository (or any of the parent directories): .git".

/kind misc

Submitter Checklist

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

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Tested your changes locally (if this is a code change)
  • [ x] Follows the commit message standard
  • [x ] Meets the Tekton contributor standards (including functionality, content, code)
  • [ x] Has a kind label. You can add a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user-facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contain the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. kind/misc Categorizes issue or PR as a miscellaneuous one. labels Jun 1, 2023
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 1, 2023
Copy link
Contributor

@khrm khrm left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@tekton-robot tekton-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 1, 2023
Copy link
Contributor

@khrm khrm left a comment

Choose a reason for hiding this comment

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

/test pull-tekton-results-build-tests

@khrm
Copy link
Contributor

khrm commented Jun 1, 2023

found .github/workflows/codeql-analysis.yml
.github/workflows/codeql-analysis.yml
  3:1       warning  truthy value should be one of [false, true]  (truthy)
  5:16      error    too many spaces inside brackets  (brackets)
  5:21      error    too many spaces inside brackets  (brackets)
  8:16      error    too many spaces inside brackets  (brackets)
  8:21      error    too many spaces inside brackets  (brackets)
  24:20     error    too many spaces inside brackets  (brackets)
  24:25     error    too many spaces inside brackets  (brackets)
  52:6      warning  missing starting space in comment  (comments)

@khrm
Copy link
Contributor

khrm commented Jun 1, 2023

This probably won't fix Codeql. From what I can see:
https://github.com/tektoncd/cli/blob/main/.github/workflows/codeql-analysis.yml

We don't have spaces between bracket in cli.

@khrm khrm removed the lgtm Indicates that a PR is ready to be merged. label Jun 1, 2023
@enarha
Copy link
Contributor Author

enarha commented Jun 1, 2023

@khrm It looks like the GH actions have been disabled and I do not see the CodeQL analyses running anymore. I'll mark that PR as do-not-merge as it's not needed, but I'll keep it around few days in case e need to debug and fix CodeQL.
/do-not-merge

@enarha
Copy link
Contributor Author

enarha commented Jun 1, 2023

/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 1, 2023
@khrm
Copy link
Contributor

khrm commented Jun 1, 2023

@enarha I removed that temporarily. Let's recheck.

@khrm khrm closed this Jun 1, 2023
@khrm khrm reopened this Jun 1, 2023
@khrm khrm closed this Jun 5, 2023
@khrm khrm reopened this Jun 5, 2023
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: khrm, vdemeester

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

The pull request process is described here

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

CodeQL Analysis was recently enabled on Results, but it's failing with
"fatal: not a git repository (or any of the parent directories): .git".
@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 6, 2023
@tekton-robot
Copy link

@enarha: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@adambkaplan
Copy link
Contributor

It looks like we have a competing PR: #494

Copy link
Contributor

@khrm khrm left a comment

Choose a reason for hiding this comment

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

I have closed that PR. I opened it to check whether codeql started working but it still doesn't work.

@khrm
Copy link
Contributor

khrm commented Sep 8, 2023

I think we can safely close this because codeql-analysis was removed and it is still not working.

@khrm khrm closed this Sep 8, 2023
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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/misc Categorizes issue or PR as a miscellaneuous one. lifecycle/stale needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants