fix: update Stack class to set URL from config and enhance TestStack with region-specific URL tests #232
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
| name: Source Composition Analysis Scan | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| security-sca: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| with: | |
| packages: 'tools platform-tools platforms;android-34 build-tools;34.0.0' | |
| - name: Setup local.properties | |
| run: | | |
| cat << EOF >> local.properties | |
| sdk.dir=$ANDROID_HOME | |
| host="${{ secrets.HOST }}" | |
| APIKey="${{ secrets.API_KEY }}" | |
| deliveryToken="${{ secrets.DELIVERY_TOKEN }}" | |
| environment="${{ secrets.ENVIRONMENT }}" | |
| contentType="${{ secrets.CONTENT_TYPE }}" | |
| assetUid="${{ secrets.ASSET_UID }}" | |
| EOF | |
| - name: Set up Snyk | |
| uses: snyk/actions/setup@master | |
| with: | |
| snyk-version: latest | |
| - name: Run Snyk | |
| env: | |
| SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
| run: snyk test --fail-on=all --all-sub-projects --json > snyk.json | |
| continue-on-error: true | |
| - uses: contentstack/sca-policy@main |