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

#5681 Update ossar-analysis.yml #5716

Merged
merged 14 commits into from
May 22, 2024
Merged

Conversation

martgil
Copy link
Collaborator

@martgil martgil commented May 16, 2024

This PR updates the ossar-analysis.yml file in .github/workflows/ by updating the github action to its most recent version.

Reference: https://github.com/FlowCrypt/flowcrypt-browser/new/master?filename=.github%2Fworkflows%2Fossar.yml&workflow_template=code-scanning%2Fossar

close #5681


Tests (delete all except exactly one):

  • Does not need tests (refactor only, docs or internal changes)

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@martgil martgil requested a review from sosnovsky as a code owner May 16, 2024 06:46
@martgil
Copy link
Collaborator Author

martgil commented May 16, 2024

Hello @sosnovsky, this is now ready for review. It's difficult to tackle a place without a map but I'm glad I have found the right root-cause.

You can double-check and ensure that this PR fixes the issue by noticing the time it takes for the OSSAR's push vs pull_request and it both finishes in 2 minutes mark.

image

Compare to other PR's OSSAR test results:

image

I believe its also better to limit the push checks to master for consistency. As for example, I do not see any codeQL security checks that runs on a pull request for both pull_request and push events at the time.

@martgil
Copy link
Collaborator Author

martgil commented May 16, 2024

Ready for review. thank you!

.github/workflows/ossar-analysis.yml Show resolved Hide resolved
.github/workflows/ossar-analysis.yml Show resolved Hide resolved
.github/workflows/ossar-analysis.yml Outdated Show resolved Hide resolved
@martgil

This comment was marked as outdated.

@martgil
Copy link
Collaborator Author

martgil commented May 22, 2024

Hello @sosnovsky I had to remove the "$default-branch" from the previous change as they we're meant to be placeholders only for someone who starts to create the GitHub action over GitHub's workflows configuration page - https://github.com/FlowCrypt/flowcrypt-browser/actions/new.

This is now ready for another review. Thanks!

@sosnovsky sosnovsky enabled auto-merge (squash) May 22, 2024 07:18
Copy link
Collaborator

@sosnovsky sosnovsky left a comment

Choose a reason for hiding this comment

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

All good now, thanks!

@sosnovsky sosnovsky merged commit 36d9668 into master May 22, 2024
13 checks passed
@sosnovsky sosnovsky deleted the issue-5681-update-ossar-github-action branch May 22, 2024 07:18
ioanmo226 pushed a commit that referenced this pull request May 27, 2024
* Update ossar-analysis.yml

* Checkout github.sha on push

* Add condition for push event

* Fix typo

* Make checkout repository failsafe

* Update ossar-analysis.yml based on the update template from GitHub

* Limit OSSAR push check on master branch

* Enforce latest updates

* Update OSSAR to run on pull_requests

* Use ubuntu-latest

* Specify master branch

---------

Co-authored-by: martgil <martroblesit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix failing OSSAR static analysis reporting
2 participants