File tree Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -2757,7 +2757,7 @@ def manage_output_variables():
2757
2757
updated_versions = 1
2758
2758
break
2759
2759
if updated_versions == 1 :
2760
- print ("::set-output name= has_updated_versions::1" )
2760
+ print ('" has_updated_versions=1" >>"$GITHUB_OUTPUT"' )
2761
2761
2762
2762
2763
2763
def reformat_markdown_tables ():
Original file line number Diff line number Diff line change 29
29
30
30
prepare :
31
31
name : Prepare matrix
32
- runs-on : ubuntu-latest
32
+ runs-on : ubuntu-latest
33
33
outputs :
34
34
tag : ${{ steps.image_tag.outputs.tag }}
35
35
steps :
40
40
BRANCH_NAME="${GITHUB_REF##*/}"
41
41
TAG="test-${GITHUB_ACTOR}-${BRANCH_NAME}"
42
42
echo "Tag name: ${TAG}"
43
- echo "::set-output name= tag:: ${TAG}"
43
+ echo "tag= ${TAG}" >>"$GITHUB_OUTPUT "
44
44
45
45
build :
46
46
# Name the Job
Original file line number Diff line number Diff line change 55
55
# Get the current date #
56
56
# #######################
57
57
- name : Get current date
58
- run : echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> ${ GITHUB_ENV}
58
+ run : echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >>"$ GITHUB_ENV"
59
59
60
60
# #######################
61
61
# Build image tag name #
66
66
BRANCH_NAME="${GITHUB_REF##*/}"
67
67
TAG="test-${GITHUB_ACTOR}-${BRANCH_NAME}"
68
68
echo "Tag name: ${TAG}"
69
- echo "::set-output name= tag:: ${TAG}"
69
+ echo "tag= ${TAG}" >>"$GITHUB_OUTPUT "
70
70
71
71
# ##################################
72
72
# Build image locally for testing #
@@ -210,7 +210,7 @@ jobs:
210
210
# #############################################
211
211
# Check Docker image security with Trivy #
212
212
# #############################################
213
-
213
+
214
214
- name : Run Trivy vulnerability scanner
215
215
uses : aquasecurity/trivy-action@master
216
216
with :
@@ -221,4 +221,4 @@ jobs:
221
221
security-checks : vuln
222
222
vuln-type : ' os,library'
223
223
severity : ' CRITICAL,HIGH'
224
- timeout : 10m0s
224
+ timeout : 10m0s
Original file line number Diff line number Diff line change 37
37
runs-on : ubuntu-latest
38
38
# Only run on main repo
39
39
if : github.repository == 'oxsecurity/megalinter' && !contains(github.event.head_commit.message, 'skip deploy')
40
- environment :
40
+ environment :
41
41
name : latest
42
42
# #################
43
43
# Load all steps #
@@ -109,10 +109,12 @@ jobs:
109
109
- name : Get release version
110
110
id : version
111
111
run : |
112
- echo "::set-output name=cversion::$(git describe --tags --match='v*' --abbrev=0 | cut -c2-)"
113
- echo "::set-output name=ctag::$(git describe --tags --match='v*' --abbrev=0)"
114
- echo "::set-output name=pversion::$(git describe --abbrev=0 --match='v*' --tags $(git rev-list --tags --skip=1 --max-count=1) | cut -c2-)"
115
- echo "::set-output name=ptag::$(git describe --abbrev=0 --match='v*' --tags $(git rev-list --tags --skip=1 --max-count=1))"
112
+ {
113
+ echo "cversion=$(git describe --tags --match='v*' --abbrev=0 | cut -c2-)"
114
+ echo "ctag=$(git describe --tags --match='v*' --abbrev=0)"
115
+ echo "pversion=$(git describe --abbrev=0 --match='v*' --tags "$(git rev-list --tags --skip=1 --max-count=1)" | cut -c2-)"
116
+ echo "ptag=$(git describe --abbrev=0 --match='v*' --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
117
+ } >>"$GITHUB_OUTPUT"
116
118
- name : Print tags
117
119
run : |
118
120
echo "prev tag ${{ steps.version.outputs.ptag }}"
Original file line number Diff line number Diff line change @@ -822,7 +822,7 @@ def display_header():
822
822
logging .info ("" )
823
823
824
824
def check_results (self ):
825
- print (f"::set-output name= has_updated_sources:: { str (self .has_updated_sources )} " )
825
+ print (f'" has_updated_sources= { str (self .has_updated_sources )} " >>"$GITHUB_OUTPUT"' )
826
826
if self .status == "success" :
827
827
logging .info (c .green ("✅ Successfully linted all files without errors" ))
828
828
config .delete ()
You can’t perform that action at this time.
0 commit comments