Skip to content

Commit dbeafd3

Browse files
committed
merge main
2 parents ac5bf3a + 3079c5b commit dbeafd3

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
# Initializes the CodeQL tools for scanning.
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
48+
uses: github/codeql-action/init@dd196fa9ce80b6bacc74ca1c32bd5b0ba22efca7 # v3.28.3
4949
with:
5050
languages: ${{ matrix.language }}
5151
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -55,7 +55,7 @@ jobs:
5555
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5656
# If this step fails, then you should remove it and run the build manually (see below)
5757
- name: Autobuild
58-
uses: github/codeql-action/autobuild@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
58+
uses: github/codeql-action/autobuild@dd196fa9ce80b6bacc74ca1c32bd5b0ba22efca7 # v3.28.3
5959

6060
# ℹ️ Command-line programs to run using the OS shell.
6161
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -68,6 +68,6 @@ jobs:
6868
# ./location_of_script_within_repo/buildscript.sh
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
71+
uses: github/codeql-action/analyze@dd196fa9ce80b6bacc74ca1c32bd5b0ba22efca7 # v3.28.3
7272
with:
7373
category: "/language:${{matrix.language}}"

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ jobs:
6666

6767
# Upload the results to GitHub's code scanning dashboard.
6868
- name: "Upload to code-scanning"
69-
uses: github/codeql-action/upload-sarif@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
69+
uses: github/codeql-action/upload-sarif@dd196fa9ce80b6bacc74ca1c32bd5b0ba22efca7 # v3.28.3
7070
with:
7171
sarif_file: results.sarif

dockerhub_doc_config_update.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,21 @@ def generate_official_image_info(file, ver, pkg, os, dfdir):
187187
# Fetch the latest manifest block
188188
official_manifest = Path("official-eclipse-temurin").read_text()
189189
official_gitcommit = ""
190-
if any(tag in official_manifest for tag in tags):
191-
official_gitcommit = official_manifest.split("GitCommit: ")[1].split()[0]
190+
# Retrieve the latest manifest block
191+
all_tags = "|".join(tags)
192+
for line in official_manifest.splitlines():
193+
if re.search(all_tags, line):
194+
# return block starting from the matching line until a blank line
195+
official_manifest = "\n".join(
196+
official_manifest.splitlines()[
197+
official_manifest.splitlines().index(line) :
198+
]
199+
)
200+
official_gitcommit = re.search(
201+
r"GitCommit: ([a-f0-9]+)", official_manifest
202+
).group(1)
203+
204+
if official_gitcommit:
192205
if (
193206
subprocess.call(
194207
[
@@ -222,13 +235,14 @@ def generate_official_image_info(file, ver, pkg, os, dfdir):
222235
[
223236
"git",
224237
"diff",
238+
"--quiet",
225239
f"{commit}:{dfdir}/entrypoint.sh",
226240
f"{official_gitcommit}:{dfdir}/entrypoint.sh",
227241
]
228242
)
229243
.decode()
230244
.strip()
231-
!= ""
245+
== 0
232246
):
233247
diff = (
234248
subprocess.check_output(

0 commit comments

Comments
 (0)