File tree Expand file tree Collapse file tree 4 files changed +19
-19
lines changed Expand file tree Collapse file tree 4 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 17
17
has_change : ${{ steps.diff.outputs.has_change}}
18
18
19
19
steps :
20
- - uses : actions/checkout@v2
20
+ - uses : actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@ v2
21
21
22
22
- id : fetch-base
23
23
if : github.event_name == 'pull_request'
45
45
46
46
# If the diff file is not empty, it has changes.
47
47
[ -s diff.txt ] && echo "::set-output name=has_change::true" || echo "::set-output name=has_change::false"
48
-
48
+
49
49
- name : set has_change to true for push to main/master
50
50
if : github.event_name == 'push'
51
51
run : echo "::set-output name=has_change::true"
@@ -67,11 +67,11 @@ jobs:
67
67
68
68
- name : Check out code
69
69
if : ${{ needs.changes.outputs.has_change == 'true' }}
70
- uses : actions/checkout@v2
70
+ uses : actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@ v2
71
71
72
72
# Use Docker layer caching for 'docker build' and 'docker-compose build' commands.
73
73
# https://github.com/satackey/action-docker-layer-caching/releases/tag/v0.0.11
74
- - uses : satackey/action-docker-layer-caching@46d2c640b1d8ef50d185452ad6fb324e6bd1d052
74
+ - uses : satackey/action-docker-layer-caching@46d2c640b1d8ef50d185452ad6fb324e6bd1d052 # pin@46d2c640b1d8ef50d185452ad6fb324e6bd1d052
75
75
if : ${{ needs.changes.outputs.has_change == 'true' }}
76
76
continue-on-error : true
77
77
Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ jobs:
24
24
language : [ 'ruby' ]
25
25
26
26
steps :
27
- - name : Checkout repository
28
- uses : actions/checkout@v2
27
+ - name : Checkout repository
28
+ uses : actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin @v2
29
29
30
- # Initializes the CodeQL tools for scanning.
31
- - name : Initialize CodeQL
32
- uses : github/codeql-action/init@v2
33
- with :
34
- languages : ${{ matrix.language }}
30
+ # Initializes the CodeQL tools for scanning.
31
+ - name : Initialize CodeQL
32
+ uses : github/codeql-action/init@27ea8f8fe5977c00f5b37e076ab846c5bd783b96 # pin @v2
33
+ with :
34
+ languages : ${{ matrix.language }}
35
35
36
- - name : Autobuild
37
- uses : github/codeql-action/autobuild@v2
36
+ - name : Autobuild
37
+ uses : github/codeql-action/autobuild@27ea8f8fe5977c00f5b37e076ab846c5bd783b96 # pin @v2
38
38
39
- - name : Perform CodeQL Analysis
40
- uses : github/codeql-action/analyze@v2
39
+ - name : Perform CodeQL Analysis
40
+ uses : github/codeql-action/analyze@27ea8f8fe5977c00f5b37e076ab846c5bd783b96 # pin @v2
Original file line number Diff line number Diff line change 15
15
16
16
steps :
17
17
- name : Check out code
18
- uses : actions/checkout@v2
18
+ uses : actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@ v2
19
19
20
-
20
+ - uses : ruby/setup-ruby@8029ebd6e5bd8f4e0d6f7623ea76a01ec5b1010d # pin@ v1.110.0
21
21
with :
22
22
ruby-version : 2.7.5
23
23
bundler-cache : true
Original file line number Diff line number Diff line change 15
15
16
16
steps :
17
17
- name : Check out code
18
- uses : actions/checkout@v2
18
+ uses : actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@ v2
19
19
20
-
20
+ - uses : ruby/setup-ruby@8029ebd6e5bd8f4e0d6f7623ea76a01ec5b1010d # pin@ v1.110.0
21
21
with :
22
22
ruby-version : 2.7.5
23
23
bundler-cache : true
You can’t perform that action at this time.
0 commit comments