mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Use explicit pinned dependencies per: - [The Open Source Security Foundation (OpenSSF) Security Guide](https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies) This pull request is created by [StepSecurity](https://app.stepsecurity.io/securerepo) at the request of @guidezpl. Please merge the Pull Request to incorporate the requested changes. Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: Pierre-Louis <plg@google.com> Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
# Copyright 2013 The Flutter Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
name: Generate Changed Files JSON
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
|
|
jobs:
|
|
generate-json:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
|
|
- name: Fetch base commit and origin/master
|
|
# Fetch what to compare the commit against
|
|
run: |
|
|
git fetch --no-tags --prune --depth=1 origin ${{ github.event.pull_request.base.sha }}
|
|
git fetch --no-tags --prune --depth=1 origin master
|
|
echo "FLUTTER_PREBUILT_ENGINE_VERSION=${{ github.event.pull_request.base.sha }}" >> "$GITHUB_ENV"
|
|
|
|
- name: Initialize Dart SDK
|
|
# This downloads the version of the Dart SDK for the current platform.
|
|
run: |
|
|
./bin/dart --version
|
|
cd dev/tools && ../../bin/dart pub get
|
|
|
|
- name: Write changed files to a JSON file
|
|
run: |
|
|
./bin/dart run dev/tools/bin/get_files_changed.dart --since="${{ github.event.pull_request.base.sha }}" > changed_files.json
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: changed-files
|
|
path: changed_files.json
|