Skip to content

Commit 781dde6

Browse files
fix: resolve scheduled build failure, Trivy scan scope, and CSS path
Add permissions block to scheduled-build.yml granting actions: read, contents: write, and security-events: write. The repository default workflow permissions are read-only, which prevented the reusable build.yml from starting. Add maven2 to Trivy skip-dirs. The maven2/ directory is a transient checkout of the artifact repository used only during deployment and should be scanned in the maven2 repository instead. Inline custom CSS directly in site.xml instead of referencing an external ./css/custom.css file. The relative path resolved incorrectly for pages in subdirectories (e.g., guides/architecture.html looked for guides/css/custom.css which didn't exist).
1 parent 8754704 commit 781dde6

File tree

4 files changed

+31
-30
lines changed

4 files changed

+31
-30
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ jobs:
210210
format: 'sarif'
211211
output: 'trivy-results.sarif'
212212
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
213+
# Exclude maven2 artifact repo checkout (has its own security scanning)
214+
skip-dirs: 'maven2'
213215
- name: Trivy Summary
214216
if: ${{ !inputs.skip_code_scans }}
215217
run: |

.github/workflows/scheduled-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
# Nightly build at 4:00 AM UTC (after liboscal-java)
55
- cron: '0 4 * * *'
66
workflow_dispatch:
7+
permissions:
8+
actions: read
9+
contents: write
10+
security-events: write
711
jobs:
812
nightly:
913
uses: ./.github/workflows/build.yml

src/site/resources/css/custom.css

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/site/site.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,31 @@
3737
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
3838
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
3939
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css" crossorigin="anonymous" />
40-
<link rel="stylesheet" href="./css/custom.css" />
40+
<style>
41+
a.externalLink[href^=https],a.externalLink[href^=http] {
42+
background: none;
43+
padding-right: 0;
44+
}
45+
a.externalLink[href^=https]::after,a.externalLink[href^=http]::after {
46+
font-family: 'Font Awesome 5 Free';
47+
display: inline-block;
48+
content: "\f35d";
49+
font-size: .5rem;
50+
font-weight: 900;
51+
margin-left: 3px;
52+
}
53+
footer {
54+
text-align: center;
55+
padding-bottom: 10px;
56+
}
57+
code {
58+
color: #5f879b;
59+
}
60+
/* Fix table header alignment - flexmark doesn't apply alignment to th cells */
61+
.table th, table th {
62+
text-align: left !important;
63+
}
64+
</style>
4165
]]>
4266
</head>
4367

0 commit comments

Comments
 (0)