-
Couldn't load subscription status.
- Fork 30
Add Build Workflow #303
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
Add Build Workflow #303
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
60e9a6c
Create gradle-build.yml
ramsessanchez cfabc03
Update .github/workflows/gradle-build.yml
ramsessanchez e9cd912
Update gradle-build.yml
ramsessanchez 1ab39c1
Update gradle-build.yml
ramsessanchez fe175ac
Upload Artefacts
ramsessanchez 954a76e
Update .github/workflows/gradle-build.yml
ramsessanchez 215393f
Update gradle-build.yml
ramsessanchez c353b17
Update .github/workflows/gradle-build.yml
ramsessanchez 0bbbc91
Pwshl script to decode value and write to file
ramsessanchez 9b6bd53
Update decodeAndWrite.ps1
ramsessanchez a8bd66a
Update gradle-build.yml
ramsessanchez 6bd8e0c
Update gradle-build.yml
ramsessanchez 948b6cd
Update gradle-build.yml
ramsessanchez dcc6a01
Update gradle-build.yml
ramsessanchez 0890fee
Update gradle-build.yml
ramsessanchez 9e2e8be
Update gradle-build.yml
ramsessanchez 3a5839c
Update gradle-build.yml
ramsessanchez 5c0c01e
Update gradle-build.yml
ramsessanchez 0424edf
Update gradle-build.yml
ramsessanchez dd06f09
Try Different Credscan
ramsessanchez 08a9f58
Add commitback for baseline file
ramsessanchez e2f9d20
add baselie file
ramsessanchez 6220dbc
Update gradle-build.yml
ramsessanchez 0758a7b
- fixes file encoding
baywet 27eb7b7
verify secrets
ramsessanchez 2c23fc5
Try Credscan via Script
ramsessanchez 3959bab
baseline file with excluded files
ramsessanchez d22a8a2
Fix encoding
ramsessanchez 7eb8611
Tool Test
ramsessanchez 39030ee
Update gradle-build.yml
ramsessanchez 873a40e
Try Different Credscan
ramsessanchez e7bfb5d
add baselie file
ramsessanchez c9072de
Update gradle-build.yml
ramsessanchez 160496b
- fixes file encoding
baywet 0323db6
verify secrets
ramsessanchez ac2fbfd
Try Credscan via Script
ramsessanchez 2863cee
baseline file with excluded files
ramsessanchez 7881b50
Update gradle-build.yml
ramsessanchez eff1c55
Merge branch 'rsh/addBuildWorkflow' of https://github.com/microsoftgr…
ramsessanchez 9b9aed0
Update gradle-build.yml
ramsessanchez a008f9e
Update gradle-build.yml
ramsessanchez 30a5d97
FIX ENCODING
ramsessanchez 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,64 @@ | ||
| # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
|
||
| name: Java CI with Gradle | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ dev, master ] | ||
| paths: | ||
| - 'src/**' | ||
| - '.github/**' | ||
| - '!.gradle/wrapper' | ||
| - '!.gitignore' | ||
| - '!LICENSE' | ||
| - '!THIRD PARTY NOTICES' | ||
| - '!*.md' | ||
| - '*.gradle' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Set up JDK 16 | ||
| uses: actions/setup-java@v2 | ||
| with: | ||
| java-version: '16' | ||
| distribution: 'adopt' | ||
| cache: gradle | ||
| - name: Easy detect-secrets | ||
| uses: RobertFischer/detect-secrets-action@v2.0.0 | ||
| - run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH | ||
| shell: pwsh | ||
| env: | ||
| ENCODED_VALUE: ${{ secrets.LOCAL_PROPERTIES }} | ||
| OUPUT_PATH: .\local.properties | ||
| - run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH | ||
| shell: pwsh | ||
| env: | ||
| ENCODED_VALUE: ${{ secrets.SECRING_GPG }} | ||
| OUPUT_PATH: .\secring.gpg | ||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
| - name: Build with Gradle | ||
| run: ./gradlew build | ||
| - name: Upload a Build Artifact | ||
| uses: actions/upload-artifact@v2.2.4 | ||
| with: | ||
| name: drop | ||
| path: | | ||
| **/libs/* | ||
| build/generated-pom.xml | ||
| build/generated-pom.xml.asc | ||
| build.gradle | ||
| gradlew | ||
| gradlew.bat | ||
| settings.gradle | ||
| gradle.properties | ||
| **/gradle/** | ||
| Scripts/** | ||
|
|
||
|
|
||
|
|
||
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,100 @@ | ||
| { | ||
| "version": "1.0.3", | ||
| "plugins_used": [ | ||
| { | ||
| "name": "ArtifactoryDetector" | ||
| }, | ||
| { | ||
| "name": "AWSKeyDetector" | ||
| }, | ||
| { | ||
| "name": "AzureStorageKeyDetector" | ||
| }, | ||
| { | ||
| "name": "Base64HighEntropyString", | ||
| "limit": 4.5 | ||
| }, | ||
| { | ||
| "name": "BasicAuthDetector" | ||
| }, | ||
| { | ||
| "name": "CloudantDetector" | ||
| }, | ||
| { | ||
| "name": "HexHighEntropyString", | ||
| "limit": 3.0 | ||
| }, | ||
| { | ||
| "name": "IbmCloudIamDetector" | ||
| }, | ||
| { | ||
| "name": "IbmCosHmacDetector" | ||
| }, | ||
| { | ||
| "name": "JwtTokenDetector" | ||
| }, | ||
| { | ||
| "name": "KeywordDetector", | ||
| "keyword_exclude": "" | ||
| }, | ||
| { | ||
| "name": "MailchimpDetector" | ||
| }, | ||
| { | ||
| "name": "NpmDetector" | ||
| }, | ||
| { | ||
| "name": "PrivateKeyDetector" | ||
| }, | ||
| { | ||
| "name": "SlackDetector" | ||
| }, | ||
| { | ||
| "name": "SoftlayerDetector" | ||
| }, | ||
| { | ||
| "name": "SquareOAuthDetector" | ||
| }, | ||
| { | ||
| "name": "StripeDetector" | ||
| }, | ||
| { | ||
| "name": "TwilioKeyDetector" | ||
| } | ||
| ], | ||
| "filters_used": [ | ||
| { | ||
| "path": "detect_secrets.filters.allowlist.is_line_allowlisted" | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies", | ||
| "min_level": 2 | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.heuristic.is_indirect_reference" | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.heuristic.is_likely_id_string" | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.heuristic.is_potential_uuid" | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign" | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.heuristic.is_sequential_string" | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.heuristic.is_templated_secret" | ||
| }, | ||
| { | ||
| "path": "detect_secrets.filters.regex.should_exclude_file", | ||
| "pattern": [ | ||
| "gradle.properties" | ||
| ] | ||
| } | ||
| ], | ||
| "results": {}, | ||
| "generated_at": "2021-09-09T20:53:20Z" | ||
| } |
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,31 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| <# | ||
| .Synopsis | ||
| Decode the encoded string and write it to a local file. | ||
| .Description | ||
| Recieves an encoded string value and decodes it using base64. | ||
| Write the new decoded string to a local file for later consumption. | ||
| .Parameter encodedValue | ||
| The encoded string we wish to decode. | ||
| .Parameter outputPath | ||
| The file path that we wish to write the decoded value to. | ||
| #> | ||
|
|
||
| Param( | ||
| [string]$encodedValue , | ||
| [string]$outputPath | ||
| ) | ||
|
|
||
| if($outputPath -eq "" -or $null -eq $outputPath) { | ||
| Write-Output "Value of Variable: outputPath is Null or Empty. Exiting." | ||
| Exit | ||
| } | ||
| if($encodedValue -eq "" -or $null -eq $encodedValue) { | ||
| Write-Output "Value of Variable: encodedValue is Null of Empty. Exiting." | ||
| Exit | ||
| } | ||
|
|
||
| $decodedValue = [System.Convert]::FromBase64String($encodedValue) | ||
| Set-Content $outputPath -Value $decodedValue -Encoding Byte |
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.