Skip to content

Commit

Permalink
Merge branch 'trunk' into cpswan-ossfbp-badge
Browse files Browse the repository at this point in the history
  • Loading branch information
gkc authored Nov 28, 2023
2 parents 5e234fb + f0d4e97 commit 74c9605
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: 'Checkout Repository'
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: 'Dependency Review'
uses: actions/dependency-review-action@7bbfa034e752445ea40215fff1c3bf9597993d3f # v3.1.3
uses: actions/dependency-review-action@01bc87099ba56df1e897b6874784491ea6309bc4 # v3.1.4
62 changes: 62 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: static_analysis
# Runs the workflow on the below events:
# 1. on pull request raised to trunk branch.
# 2. on push event to trunk branch.
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk

permissions: # added using https://github.com/step-security/secure-workflows
contents: read

jobs:
static_analysis:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
# at_backupkey_flutter
#- at_chat_flutter
- at_common_flutter
- at_contacts_flutter
- at_contacts_group_flutter
- at_events_flutter
#- at_follows_flutter
#- at_invitation_flutter
#- at_location_flutter
#- at_login_flutter
- at_notify_flutter
- at_onboarding_flutter
#- at_sync_ui_flutter
- at_theme_flutter

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
with:
channel: "stable"
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 'stable'
cache-dependency-path: tools/osv-scanner/go.sum

- name: Install dependencies and analyze in ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
run: |
touch example/.env
flutter pub get
flutter analyze --no-fatal-infos
# Runs osv-scanner to find any vulnerable Dart dependencies
# It needs to look at pubspec.lock files, which is why it's
# placed here, as the `dart pub get` above will create them
- name: Run osv-scanner
working-directory: packages/${{ matrix.package }}
run: |
go install github.com/google/osv-scanner/cmd/osv-scanner@6316373e47d7e3e4b4fd3630c4bbc10987738de6 # v1.4.3
osv-scanner --lockfile=./pubspec.lock
Loading

0 comments on commit 74c9605

Please sign in to comment.