-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
175 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/dash-industry-forum/dashif-specs:latest | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.github_token }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
env: | ||
# Reset OPTS to empty to make sure we are not using | ||
# interactive mode in CI | ||
OPTS: | ||
run: make -f /tools/Makefile spec SRC=Guidelines-Security.bs.md NAME=Guidelines-Security | ||
|
||
- name: Archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
packages: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/dash-industry-forum/dashif-specs:latest | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.github_token }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
env: | ||
# Reset OPTS to empty to make sure we are not using | ||
# interactive mode in CI | ||
OPTS: | ||
run: make -f /tools/Makefile spec SRC=Guidelines-Security.bs.md NAME=Guidelines-Security | ||
|
||
- name: Archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist/ | ||
|
||
package: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: dist | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
needs: package | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Output | ||
Output | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,27 @@ | ||
#include "01-Intro.inc.md" | ||
|
||
#include "10-General.inc.md" | ||
#include "40-LicenseRequestModel.inc.md" | ||
#include "60-ClientWorkflows.inc.md" | ||
#include "80-Misc.inc.md" | ||
|
||
<!-- Document metadata follows. The below sections are used by the document compiler and are not directly visible. --> | ||
|
||
<pre class="metadata"> | ||
Revision: 5.0 | ||
|
||
Title: DASH-IF implementation guidelines: content protection and security | ||
Status: LS-COMMIT | ||
Shortname: dash-security | ||
URL: https://dashif-documents.azurewebsites.net/Guidelines-Security/master/Guidelines-Security.html | ||
URL: https://dashif.org/Guidelines-Security/ | ||
Group: dashif | ||
Issue Tracking: GitHub https://github.com/Dash-Industry-Forum/Guidelines-Security/issues | ||
Repository: https://github.com/Dash-Industry-Forum/Guidelines-Security GitHub | ||
Editor: DASH Industry Forum | ||
|
||
Default Highlight: text | ||
<!-- Enabling line numbers breaks code blocks in PDF! (2018-10-02) --> | ||
Line Numbers: off | ||
Markup Shorthands: markdown yes | ||
Boilerplate: copyright off, abstract off | ||
Abstract: None | ||
</pre> | ||
|
||
<!-- Custom bibliography entries go in References.json. Prefer adding your document to SpecRef over maintaining a custom definition. --> | ||
<pre class="biblio"> | ||
#include "References.json" | ||
<pre class=include> | ||
path: 01-Intro.inc.md | ||
</pre> | ||
|
||
<pre boilerplate="conformance"> | ||
<!-- This disables the RFC2119 conformance section, as we use custom DASH-IF specific text for this. --> | ||
<pre class=include> | ||
path: 10-General.inc.md | ||
</pre> | ||
|
||
<pre boilerplate="logo"> | ||
<a href="https://dashif.org/"><img src="Images/DASH-IF.png" /></a> | ||
<pre class=include> | ||
path: 40-LicenseRequestModel.inc.md | ||
</pre> | ||
<pre class=include> | ||
path: 60-ClientWorkflows.inc.md | ||
</pre> | ||
<pre class=include> | ||
path: 80-Misc.inc.md | ||
</pre> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@echo off | ||
set IMG=dashif/specs-builder:latest | ||
|
||
rem Check if OPTS is defined, if not, set default value | ||
if "%OPTS%"=="" ( | ||
set OPTS=-ti | ||
) | ||
|
||
rem Collect command-line arguments | ||
set TARGETS=%* | ||
|
||
rem If no arguments are provided, use "spec" | ||
if "%TARGETS%"=="" ( | ||
set TARGETS=spec | ||
) | ||
|
||
rem Add parameters to TARGETS | ||
set TARGETS=%TARGETS% SRC=Guidelines-Security.bs.md NAME=Guidelines-Security | ||
|
||
echo Running with targets: '%TARGETS%' | ||
docker run --rm %OPTS% -v "%cd%:/data" -p 8000:8000 %IMG% %TARGETS% | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Here is the command that can be used to debug or develop with the | ||
# local resources. | ||
# | ||
# docker run --rm -ti -v `pwd`:/data -v `pwd`/build-tools/tools:/tools -v `pwd`/data/boilerplate/dashif:/usr/local/lib/python3.12/dist-packages/bikeshed/spec-data/boilerplate/dashif dashif-specs:latest | ||
# | ||
|
||
# Run the docker container and pass all the arguments | ||
IMG=dashif/specs-builder:latest | ||
|
||
# Allow to overwrite additional options from the outside. | ||
# We use tty and interactive by default since this makes it easier | ||
# to deal with watch mode and Ctrl-C etc but we can not use this | ||
# for instance in CI mode | ||
if [ -z ${OPTS+x} ]; then | ||
OPTS=-ti | ||
fi | ||
|
||
TARGETS="${@}" | ||
if [ -z "${TARGETS}" ]; then | ||
TARGETS="spec" | ||
fi | ||
# Add parameters | ||
TARGETS="${TARGETS} SRC=Guidelines-Security.bs.md NAME=Guidelines-Security" | ||
|
||
echo "Run with targets: '${TARGETS}'" | ||
docker run --rm ${OPTS} -v `pwd`:/data -p 8000:8000 \ | ||
${IMG} ${TARGETS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
docker pull dashif/specs-builder:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# Pull the latest build image | ||
IMG=dashif/specs-builder:latest | ||
docker pull ${IMG} |