Skip to content

Commit

Permalink
Fixed the yaml file syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
pmathew92 committed Oct 23, 2024
1 parent d16dafb commit 939c6a3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 41 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,9 @@ env:
java: 11

jobs:
authorize:
name: Authorize
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true


analyze-auth0_flutter:
name: Analyze auth0_flutter Flutter package
needs: authorize
runs-on: ubuntu-latest

steps:
Expand All @@ -51,7 +44,6 @@ jobs:

analyze-auth0_flutter_platform_interface:
name: Analyze auth0_flutter_platform_interface Flutter package
needs: authorize
runs-on: ubuntu-latest

steps:
Expand All @@ -71,7 +63,6 @@ jobs:

test-auth0_flutter:
name: Test auth0_flutter Flutter package
needs: authorize
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -103,7 +94,6 @@ jobs:

test-auth0_flutter_platform_interface:
name: Test auth0_flutter_platform_interface Flutter package
needs: authorize
runs-on: ubuntu-latest

steps:
Expand All @@ -129,7 +119,6 @@ jobs:

test-ios-unit:
name: Run native iOS unit tests using Xcode ${{ matrix.xcode }}
needs: authorize
runs-on: macos-13
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}

Expand Down Expand Up @@ -172,7 +161,6 @@ jobs:

test-ios-smoke:
name: Run native iOS smoke tests using Xcode ${{ matrix.xcode }}
needs: authorize
runs-on: macos-13-large
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}

Expand Down Expand Up @@ -207,7 +195,6 @@ jobs:

test-macos-unit:
name: Run native macOS unit tests using Xcode ${{ matrix.xcode }}
needs: authorize
runs-on: macos-13
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}

Expand Down Expand Up @@ -244,7 +231,6 @@ jobs:

test-macos-smoke:
name: Run native macOS smoke tests using Xcode ${{ matrix.xcode }}
needs: authorize
runs-on: macos-13
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}

Expand Down Expand Up @@ -279,7 +265,6 @@ jobs:

test-android-unit:
name: Run native Android unit tests
needs: authorize
runs-on: ubuntu-latest
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}

Expand Down Expand Up @@ -318,7 +303,6 @@ jobs:

# test-android-smoke:
# name: Run native Android smoke tests using API-level ${{ matrix.android-api }}
# needs: authorize
# runs-on: macos-latest-xl
# environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}

Expand Down
59 changes: 35 additions & 24 deletions .github/workflows/rl-scanner.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

name:RL-Security-Scanner
run-name:rl-security-scanner
name: RL-Security-Scanner
run-name: rl-security-scanner


on:
merge_group:
Expand All @@ -12,16 +13,11 @@ on:
- opened
- synchronize

env:
flutter: '3.x'
ios-simulator: iPhone 15
java: 11


jobs:
checkout-build-scan-only:
if: github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/'))
(github.event_name == 'pull_request')
# && startsWith(github.event.pull_request.head.ref, 'release/'))
runs-on: ubuntu-latest


Expand All @@ -30,20 +26,33 @@ jobs:
id-token: write

steps:
-uses: actions/checkout@v4

-name: Build package
uses: ./.github/actions/build
with:
flutter-version: ${{ env.flutter }}
channel: stable
cache: true

- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
with:
flutter-version: ${{ env.flutter }}
channel: stable
cache: true
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Build package
shell: bash
run: |
zip -r flutter-auth0-package.zip auth0_flutter auth0_flutter_platform_interface codecov.yml README.md LICENSE
- name: Get Artifact Version
id: get_version
run: |
version=$(cat .version)
echo "version=$version" >> $GITHUB_OUTPUT
// Need to write the other stuff
- name: Output build artifact
id: output_build_artifact
run: |
echo "scanfile=$(ls flutter-auth0-package.zip)" >> $GITHUB_OUTPUT

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -69,11 +78,13 @@ jobs:
WRAPPER_INDEX_URL: "https://${{ secrets.PRODSEC_TOOLS_USER }}:${{ secrets.PRODSEC_TOOLS_TOKEN }}@a0us.jfrog.io/artifactory/api/pypi/python-local/simple"
PYTHONUNBUFFERED: 1
run: |
pip install rl-wrapper --index-url $WRAPPER_INDEX_URL && \
pip install rl-wrapper --index-url "$WRAPPER_INDEX_URL" && \
rl-wrapper \
--artifact "$(pwd)/auth0-react.tgz" \
--name "${{ github.event.repository.name }}" \
--artifact "${{ steps.output_build_artifact.outputs.scanfile }}" \
--version "${{ steps.get_version.outputs.version }}" \
--name "${{ github.event.repository.name }}" \
--repository "${{ github.repository }}" \
--commit "${{ github.sha }}" \
--build-env "github_action"
--build-env "github_actions" \
--suppress_output
continue-on-error: true

0 comments on commit 939c6a3

Please sign in to comment.