mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Pin actions/checkout github action to a hash instead of a version for increased security (#1179)
This commit is contained in:
4
.github/workflows/beta.yml
vendored
4
.github/workflows/beta.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'flutter/samples'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf
|
||||
- uses: actions/setup-java@4fe61d24fe5472910b93bdeffb8aad49f979d862
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
if: github.repository == 'flutter/samples'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf
|
||||
- uses: actions/setup-java@4fe61d24fe5472910b93bdeffb8aad49f979d862
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
|
||||
2
.github/workflows/gh-pages.yml
vendored
2
.github/workflows/gh-pages.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
2
.github/workflows/verify-web-demos.yml
vendored
2
.github/workflows/verify-web-demos.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
||||
if: github.repository == 'flutter/samples'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
Reference in New Issue
Block a user