-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add Azure DevOps pipeline templates and Marketplace task UI #212
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
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7a7a834
feat: Add Azure DevOps pipeline templates and Marketplace task UI
squid-protocol cc1ab93
fix: resolve Muninn arbitrary execution and GitGalaxy HITL guardrails
squid-protocol e3fbdd6
fix: implement native poutine bypass and satisfy HITL guardrail
squid-protocol 771ad47
chore: remove poutine config to resolve SARIF parser crash
squid-protocol a99fc37
refactor: strip Marketplace extension files to isolate core CI/CD pip…
squid-protocol 7dc2491
fix: install gitgalaxy before checkout to satisfy muninn RCE guardrail
squid-protocol 76ea099
fix: mirror secure pipeline architecture into azure templates
squid-protocol 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
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,63 @@ | ||
| # GitGalaxy Enterprise Security Scanner | ||
| # Integration: Azure DevOps Pipelines | ||
|
|
||
| trigger: | ||
| branches: | ||
| include: | ||
| - main | ||
| tags: | ||
| include: | ||
| - v* | ||
|
|
||
| variables: | ||
| GG_TOOL: 'galaxyscope' | ||
| GG_TARGET: '.' | ||
| GG_ARGS: '--max-systemic-threat 150.0 --fail-on-secrets --fail-on-malware --sarif-only --output $(Build.ArtifactStagingDirectory)/gitgalaxy-results.json' | ||
| PIP_CACHE_DIR: '$(Pipeline.Workspace)/.pip-cache' | ||
| GITGALAXY_LICENSE_KEY: 'COMMUNITY_FREE_TIER' | ||
|
|
||
| stages: | ||
| - stage: SecurityScan | ||
| displayName: 'GitGalaxy Zero-Trust Audit' | ||
| jobs: | ||
| - job: RunGalaxyScope | ||
| displayName: 'GalaxyScope Static Analysis' | ||
| pool: | ||
| vmImage: 'ubuntu-latest' | ||
| steps: | ||
| - task: UsePythonVersion@0 | ||
| inputs: | ||
| versionSpec: '3.12' | ||
| displayName: 'Initialize Python Environment' | ||
|
|
||
| - task: Cache@2 | ||
| inputs: | ||
| key: 'pip | "$(Agent.OS)"' | ||
| path: $(PIP_CACHE_DIR) | ||
| cacheHitVar: PIP_CACHE_RESTORED | ||
| displayName: 'Configure Dependency Caching' | ||
|
|
||
| # 1. Install the tool globally FIRST (Immune to Poisoned PRs) | ||
| - script: | | ||
| python -m pip install --upgrade pip | ||
| pip install gitgalaxy networkx tiktoken xgboost pandas numpy | ||
| displayName: 'Install GitGalaxy & Heavy Physics Engines' | ||
|
|
||
| # 2. NOW pull the potentially untrusted code onto the runner | ||
| - checkout: self | ||
| fetchDepth: 0 | ||
| displayName: 'Checkout Repository (Full Depth)' | ||
|
|
||
| # 3. Execute the scan (No package managers allowed down here) | ||
| - script: | | ||
| echo "Running: $(GG_TOOL) $(GG_TARGET)$(GG_ARGS)" | ||
| $(GG_TOOL) $(GG_TARGET)$(GG_ARGS) | ||
| displayName: 'Execute Zero-Trust Spectral Audit' | ||
|
|
||
| - task: PublishPipelineArtifact@1 | ||
| inputs: | ||
| targetPath: '$(Build.ArtifactStagingDirectory)/gitgalaxy-results.json' | ||
| artifact: 'GitGalaxySecurityLogs' | ||
| publishLocation: 'pipeline' | ||
| displayName: 'Upload SARIF Security Metrics' | ||
| condition: 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
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.