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

Create hawksnan.yml #195

Merged
merged 2 commits into from
Jan 13, 2025
Merged

Create hawksnan.yml #195

merged 2 commits into from
Jan 13, 2025

Conversation

reisene
Copy link
Owner

@reisene reisene commented Jan 13, 2025

reisene TypeError: Cannot read properties of null (reading 'includes') Powered by Pull Request Badge

Podsumowanie przez Sourcery

CI:

  • Dodano nowy workflow GitHub Actions o nazwie 'HawkScan' do uruchamiania skanów bezpieczeństwa podczas zdarzeń push i pull request przy użyciu narzędzia HawkScan.
Original summary in English

Summary by Sourcery

CI:

  • Add a new GitHub Actions workflow named 'HawkScan' to run security scans on push and pull request events using the HawkScan tool.

Copy link
Contributor

aviator-app bot commented Jan 13, 2025

Aviator Changeset actions:

Copy link

Review changes with  SemanticDiff

Copy link
Contributor

aviator-app bot commented Jan 13, 2025

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

Copy link

Please follow naming conventions! 😿

Copy link

vercel bot commented Jan 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hulaj-dusza-serwis ❌ Failed (Inspect) Jan 13, 2025 6:11pm

Copy link

Click here to review and test in web IDE: Contribute

Copy link
Contributor

sourcery-ai bot commented Jan 13, 2025

Przewodnik Recenzenta przez Sourcery

Ten pull request wprowadza nowy przepływ pracy GitHub Actions o nazwie 'HawkScan' do automatyzacji skanowania bezpieczeństwa przy użyciu StackHawk. Przepływ pracy jest skonfigurowany do uruchamiania podczas zdarzeń push i pull request, wykorzystując akcję 'stackhawk/hawkscan-action' do przeprowadzenia skanów. Niezbędny klucz API jest bezpiecznie pobierany z sekretów GitHub.

Diagram sekwencji wykonania przepływu pracy HawkScan

sequenceDiagram
    participant G as GitHub
    participant W as Workflow Runner
    participant H as HawkScan

    Note over G,H: Triggered on push or pull request

    G->>W: Trigger workflow
    W->>W: Checkout repository
    W->>H: Initialize HawkScan
    W->>H: Pass API key from secrets
    H->>H: Perform security scan
    H->>W: Return scan results
    W->>G: Update workflow status
Loading

Zmiany na poziomie plików

Zmiana Szczegóły Pliki
Dodano nowy przepływ pracy GitHub Actions dla HawkScan.
  • Utworzono nowy plik YAML dla konfiguracji przepływu pracy.
  • Skonfigurowano przepływ pracy do uruchamiania podczas zdarzeń push i pull request.
  • Zdefiniowano zadanie o nazwie 'hawkscan' uruchamiane na 'ubuntu-latest'.
  • Dołączono kroki do klonowania repozytorium i uruchamiania HawkScan przy użyciu stackhawk/hawkscan-action.
  • Skonfigurowano akcję HawkScan do używania klucza API z sekretów.
.github/workflows/hawksnan.yml

Porady i polecenia

Interakcja z Sourcery

  • Zainicjuj nową recenzję: Skomentuj @sourcery-ai review w pull requeście.
  • Kontynuuj dyskusje: Odpowiedz bezpośrednio na komentarze recenzji Sourcery.
  • Wygeneruj issue GitHub z komentarza recenzji: Poproś Sourcery o utworzenie issue z komentarza recenzji, odpowiadając na niego.
  • Wygeneruj tytuł pull requesta: Napisz @sourcery-ai w dowolnym miejscu tytułu pull requesta, aby wygenerować tytuł w dowolnym momencie.
  • Wygeneruj podsumowanie pull requesta: Napisz @sourcery-ai summary w dowolnym miejscu treści pull requesta, aby wygenerować podsumowanie PR w dowolnym momencie. Możesz również użyć tego polecenia, aby określić, gdzie podsumowanie ma zostać wstawione.

Dostosowywanie Twojego doświadczenia

Uzyskaj dostęp do pulpitu nawigacyjnego, aby:

  • Włączyć lub wyłączyć funkcje recenzji, takie jak podsumowanie pull requesta generowane przez Sourcery, przewodnik recenzenta i inne.
  • Zmienić język recenzji.
  • Dodawać, usuwać lub edytować niestandardowe instrukcje recenzji.
  • Dostosować inne ustawienia recenzji.

Uzyskiwanie pomocy

Original review guide in English

Reviewer's Guide by Sourcery

This pull request introduces a new GitHub Actions workflow named 'HawkScan' to automate security scanning using StackHawk. The workflow is configured to run on both push and pull request events, and it utilizes the 'stackhawk/hawkscan-action' to perform the scans. The necessary API key is securely accessed from GitHub secrets.

Sequence diagram for HawkScan workflow execution

sequenceDiagram
    participant G as GitHub
    participant W as Workflow Runner
    participant H as HawkScan

    Note over G,H: Triggered on push or pull request

    G->>W: Trigger workflow
    W->>W: Checkout repository
    W->>H: Initialize HawkScan
    W->>H: Pass API key from secrets
    H->>H: Perform security scan
    H->>W: Return scan results
    W->>G: Update workflow status
Loading

File-Level Changes

Change Details Files
Added a new GitHub Actions workflow for HawkScan.
  • Created a new YAML file for the workflow configuration.
  • Configured the workflow to trigger on push and pull request events.
  • Defined a job named 'hawkscan' that runs on 'ubuntu-latest'.
  • Included steps to clone the repository and run HawkScan using the stackhawk/hawkscan-action.
  • Configured the HawkScan action to use an API key from secrets.
.github/workflows/hawksnan.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@aviator-app aviator-app bot removed the AnyChange label Jan 13, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Code review by ChatGPT

Copy link
Contributor

aviator-app bot commented Jan 13, 2025

This pull request can't be queued because it's currently a draft.

Copy link

github-actions bot commented Jan 13, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
actions/actions/checkout 2.*.* 🟢 6.7
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Maintained🟢 45 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Binary-Artifacts🟢 10no binaries found in the repo
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 10license file detected
Fuzzing⚠️ 0project is not fuzzed
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 9security policy file detected
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration
Packaging🟢 10packaging workflow detected
SAST🟢 9SAST tool detected but not run on all commits
Vulnerabilities🟢 82 existing vulnerabilities detected
actions/stackhawk/hawkscan-action 2.*.* 🟢 4.5
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Maintained⚠️ 00 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Binary-Artifacts🟢 10no binaries found in the repo
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Packaging⚠️ -1packaging workflow not detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Security-Policy⚠️ 0security policy file not detected
Pinned-Dependencies⚠️ 0dependency not pinned by hash detected -- score normalized to 0
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Fuzzing⚠️ 0project is not fuzzed
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
Vulnerabilities🟢 73 existing vulnerabilities detected

Scanned Files

  • .github/workflows/hawkscan.yml

Copy link
Contributor

deepsource-io bot commented Jan 13, 2025

Here's the code health analysis summary for commits 8d48140..82295df. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource PHP LogoPHP✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage⚠️ Artifact not reportedTimed out: Artifact was never reportedView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link
Contributor

mergify bot commented Jan 13, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Do not merge outdated PRs

Wonderful, this rule succeeded.

Make sure PRs are almost up to date before merging

  • #commits-behind <= 10

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Code review by ChatGPT

Copy link
Contributor

aviator-app bot commented Jan 13, 2025

This pull request can't be queued because it's currently a draft.

@aviator-app aviator-app bot removed the AnyChange label Jan 13, 2025
@reisene reisene marked this pull request as ready for review January 13, 2025 17:53
Copy link
Contributor

aviator-app bot commented Jan 13, 2025

Skipping bot pull request creation because the queue is empty and this pull request is up to date with main.

@aviator-app aviator-app bot merged commit fd95540 into main Jan 13, 2025
30 of 40 checks passed
@aviator-app aviator-app bot deleted the reisene-patch-1 branch January 13, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant