-
Notifications
You must be signed in to change notification settings - Fork 0
Fix task failure handling when task is not a Signature #56
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
Merged
yedidyakfir
merged 20 commits into
develop
from
feature/54-fix-task-failure-handling-when-task-is-not-a-signature
Feb 3, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ac7f9ea
[54-fix-task-failure-handling-when-task-is-not-a-signature] - fail ra…
yedidyakfir bf85263
[54-fix-task-failure-handling-when-task-is-not-a-signature] - added t…
yedidyakfir 2d7a93e
[54-fix-task-failure-handling-when-task-is-not-a-signature] - check i…
yedidyakfir fc31c24
[54-fix-task-failure-handling-when-task-is-not-a-signature] - fix check
yedidyakfir cc8f0b9
[54-fix-task-failure-handling-when-task-is-not-a-signature] - normal …
yedidyakfir a76a6cd
[54-fix-task-failure-handling-when-task-is-not-a-signature] - fix tes…
yedidyakfir 67c5ecc
[54-fix-task-failure-handling-when-task-is-not-a-signature] - shorter…
yedidyakfir 6abf580
[54-fix-task-failure-handling-when-task-is-not-a-signature] - use tas…
yedidyakfir 21306f8
[54-fix-task-failure-handling-when-task-is-not-a-signature] - we crea…
yedidyakfir f0c9d45
[54-fix-task-failure-handling-when-task-is-not-a-signature] - we set …
yedidyakfir cb7bf4a
[54-fix-task-failure-handling-when-task-is-not-a-signature] - done an…
yedidyakfir 77d8301
[54-fix-task-failure-handling-when-task-is-not-a-signature] - unused …
yedidyakfir 81b45b0
[54-fix-task-failure-handling-when-task-is-not-a-signature] - remove …
yedidyakfir 9704833
[54-fix-task-failure-handling-when-task-is-not-a-signature] - fix sig…
yedidyakfir 32ed5c4
[54-fix-task-failure-handling-when-task-is-not-a-signature] - test ca…
yedidyakfir 31a8401
[54-fix-task-failure-handling-when-task-is-not-a-signature] - we dont…
yedidyakfir b6e2a47
[54-fix-task-failure-handling-when-task-is-not-a-signature] - optimize
yedidyakfir 93fdab4
[54-fix-task-failure-handling-when-task-is-not-a-signature] - added t…
yedidyakfir 489471d
[54-fix-task-failure-handling-when-task-is-not-a-signature] - no more…
yedidyakfir 37e2356
[54-fix-task-failure-handling-when-task-is-not-a-signature] - added s…
yedidyakfir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # Bandit is a security linter designed to find common security issues in Python code. | ||
| # This action will run Bandit on your codebase. | ||
| # The results of the scan will be found under the Security tab of your repository. | ||
|
|
||
| # https://github.com/marketplace/actions/bandit-scan is ISC licensed, by abirismyname | ||
| # https://pypi.org/project/bandit/ is Apache v2.0 licensed, by PyCQA | ||
|
|
||
| name: Bandit | ||
| on: | ||
| push: | ||
| branches: [ "main", "develop" ] | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '31 8 * * 5' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| bandit: | ||
| permissions: | ||
| contents: read # for actions/checkout to fetch code | ||
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
|
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Bandit Scan | ||
| uses: shundor/python-bandit-scan@ab1d87dfccc5a0ffab88be3aaac6ffe35c10d6cd | ||
| with: | ||
| exit_zero: true | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| # Exclude test directories - B101 (assert_used) is valid in tests | ||
| excluded_paths: tests | ||
| # Skip B101 globally as asserts are valid for runtime checks too | ||
| skips: B101 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Close issues related to a merged pull request based on master branch. | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: | ||
| - develop | ||
| - main | ||
|
|
||
| permissions: | ||
| issues: write | ||
|
|
||
| jobs: | ||
| closeIssueOnPrMergeTrigger: | ||
| if: github.event.pull_request.merged == true | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Closes issues related to a merged pull request. | ||
| uses: ldez/gha-mjolnir@v1.4.1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Extract issue number from branch name and close | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const branchName = context.payload.pull_request.head.ref; | ||
| // Match patterns: feature/86-..., fix/123-..., 86-..., issue-86 | ||
| const match = branchName.match(/(?:^|\/|-)(\d+)(?:-|$)/); | ||
| if (match) { | ||
| const issueNumber = parseInt(match[1]); | ||
| try { | ||
| const issue = await github.rest.issues.get({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: issueNumber | ||
| }); | ||
| if (issue.data.state === 'open') { | ||
| await github.rest.issues.update({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: issueNumber, | ||
| state: 'closed', | ||
| state_reason: 'completed' | ||
| }); | ||
| } | ||
| } catch (error) { | ||
| if (error.status !== 404) throw error; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| name: Security Scan | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, develop] | ||
| pull_request: | ||
| branches: [main, develop] | ||
| schedule: | ||
| # Run weekly on Monday at 9am UTC | ||
| - cron: '0 9 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| jobs: | ||
| pip-audit: | ||
| name: Dependency Vulnerability Scan | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
|
|
||
| - name: Install tools | ||
| run: | | ||
| python -m pip install --upgrade pip pipx | ||
| pip install pip-audit | ||
| pipx install poetry | ||
| pipx inject poetry poetry-plugin-export | ||
|
|
||
| - name: Export and audit dependencies | ||
| run: | | ||
| poetry export -f requirements.txt --without-hashes -o requirements-audit.txt | ||
| pip-audit --strict -r requirements-audit.txt | ||
|
|
||
|
|
||
| secrets-scan: | ||
| name: Secrets Detection | ||
| environment: | ||
| name: security | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Run Gitleaks | ||
| uses: gitleaks/gitleaks-action@v2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} | ||
|
|
||
| summary: | ||
| name: Security Summary | ||
| runs-on: ubuntu-latest | ||
| needs: [pip-audit, secrets-scan] | ||
| if: always() | ||
| steps: | ||
| - name: Check results | ||
| run: | | ||
| echo "## Security Scan Summary" >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
|
|
||
| if [ "${{ needs.pip-audit.result }}" == "success" ]; then | ||
| echo "✅ pip-audit: Passed" >> $GITHUB_STEP_SUMMARY | ||
| else | ||
| echo "❌ pip-audit: Failed" >> $GITHUB_STEP_SUMMARY | ||
| fi | ||
|
|
||
| if [ "${{ needs.secrets-scan.result }}" == "success" ]; then | ||
| echo "✅ Secrets scan: Passed" >> $GITHUB_STEP_SUMMARY | ||
| else | ||
| echo "❌ Secrets scan: Failed" >> $GITHUB_STEP_SUMMARY | ||
| fi | ||
|
|
||
| - name: Fail if any check failed | ||
| if: | | ||
| needs.pip-audit.result == 'failure' || | ||
| needs.secrets-scan.result == 'failure' | ||
| run: exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # This workflow file requires a free account on Semgrep.dev to | ||
| # manage rules, file ignores, notifications, and more. | ||
| # | ||
| # See https://semgrep.dev/docs | ||
|
|
||
| name: Semgrep | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main", "develop" ] | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '29 23 * * 6' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| semgrep: | ||
| permissions: | ||
| contents: read # for actions/checkout to fetch code | ||
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
| name: Scan | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # Checkout project source | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| # Scan code using project's configuration on https://semgrep.dev/manage | ||
| - uses: returntocorp/semgrep-action@fcd5ab7459e8d91cb1777481980d1b18b4fc6735 | ||
| with: | ||
| publishToken: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
| publishDeployment: ${{ secrets.SEMGREP_DEPLOYMENT_ID }} | ||
| generateSarif: "1" | ||
|
|
||
| # Upload SARIF file generated in previous step | ||
| - name: Upload SARIF file | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
| sarif_file: semgrep.sarif | ||
| if: always() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.