Skip to content

disallow an empty language ext without ext-seg - #1247

Merged
1 commit merged into
CERTCC:mainfrom
csaf-auxiliary:fix-1233
Sep 17, 2026
Merged

1 commit merged into
CERTCC:mainfrom
csaf-auxiliary:fix-1233

Conversation

@bernhardreiter

Copy link
Copy Markdown
Contributor

change ABNF to disallow things like ssvc/, update the python pattern
and the test cases accordingly.

use a simplified ABNF rule for readablity,
because [ 1*elem ] equals *elem and whitespace after braces is not
necessary (and not always used in the file).

resolve #1233

  change ABNF to disallow things like `ssvc/`, update the python pattern
  and the test cases accordingly.

  use a simplified ABNF rule for readablity,
  because `[ 1*elem ]` equals `*elem` and whitespace after braces is not
  necessary (and not always used in the file).

resolve CERTCC#1233
@sei-vsarvepalli

Copy link
Copy Markdown
Contributor

Hello @bernhardreiter

Can you also update the .github/workflows/run_doctools.yml as discussed in #1226 - below is the recommended diff patch.

It will also secure the checkout against supply-chain attacks.

diff --git a/.github/workflows/run_doctools.yml b/.github/workflows/run_doctools.yml
index d5c098f1..b3139fc1 100644
--- a/.github/workflows/run_doctools.yml
+++ b/.github/workflows/run_doctools.yml
@@ -16,9 +16,10 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v7
+      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
         with:
-          ref: ${{ github.head_ref }}
+          repository: ${{ github.event.pull_request.head.repo.full_name }}
+          ref: ${{ github.event.pull_request.head.sha }}
           fetch-depth: 0

@sei-vsarvepalli

Copy link
Copy Markdown
Contributor

I have the fix pushed din #1249 - including your regex/ABNF update.

@sei-vsarvepalli sei-vsarvepalli closed this pull request by merging all changes into CERTCC:main in fa6a3a4 Sep 17, 2026
@bernhardreiter
bernhardreiter deleted the fix-1233 branch September 18, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should ssvc/ be allowed?

2 participants