Skip to content

Commit 01de36c

Browse files
authored
Add Poutine SASL (open-quantum-safe#2213)
* Change Nix install action to verified Signed-off-by: Aiden Fox Ivey <aiden@aidenfoxivey.com> * Integrate poutine Signed-off-by: Aiden Fox Ivey <aiden@aidenfoxivey.com> --------- Signed-off-by: Aiden Fox Ivey <aiden@aidenfoxivey.com>
1 parent 78e2389 commit 01de36c

5 files changed

Lines changed: 42 additions & 17 deletions

File tree

.github/workflows/basic.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,9 @@ jobs:
161161
name: Check that Nix flake has correct syntax and can build
162162
runs-on: ubuntu-latest
163163
steps:
164+
- uses: DeterminateSystems/nix-installer-action@90bb610b90bf290cad97484ba341453bd1cbefea # v19
164165
- name: Checkout code
165166
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
166-
- name: Install Nix
167-
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72
168167
- name: Check devShell
169168
run: nix develop --command echo
170169
- name: Check flake syntax

.github/workflows/commit-to-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
secrets: inherit
1818

1919
scorecard:
20-
uses: ./.github/workflows/scorecard.yml
20+
uses: ./.github/workflows/supplychain.yml
2121
secrets: inherit
2222
permissions:
2323
id-token: write
@@ -35,4 +35,4 @@ jobs:
3535
call-sig-benchmarking:
3636
uses: ./.github/workflows/sig-bench.yml
3737
permissions:
38-
contents: write
38+
contents: write

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
scorecard:
2727
needs: basic-checks
28-
uses: ./.github/workflows/scorecard.yml
28+
uses: ./.github/workflows/supplychain.yml
2929
secrets: inherit
3030
permissions:
3131
id-token: write
Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525

2626
steps:
2727
- name: "Checkout code"
28-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2929
with:
3030
persist-credentials: false
3131

32-
- name: "Run analysis"
33-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # pin@v2.4.0
32+
- name: "Run ossf scorecard"
33+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
3434
with:
35-
results_file: results.sarif
3635
results_format: sarif
36+
results_file: ossf_results.sarif
3737
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
3838
# - you want to enable the Branch-Protection check on a *public* repository, or
3939
# - you are installing Scorecard on a *private* repository
@@ -49,16 +49,42 @@ jobs:
4949
# of the value entered here.
5050
publish_results: true
5151

52+
- name: "Run poutine supply chain check"
53+
uses: boostsecurityio/poutine-action@84c0a0d32e8d57ae12651222be1eb15351429228 # v0.15.2
54+
with:
55+
format: sarif
56+
output: poutine_results.sarif
57+
publish_results: true
58+
59+
- name: Configure as safe directory
60+
run: git config --global --add safe.directory /__w/liboqs/liboqs
61+
5262
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5363
# format to the repository Actions tab.
54-
- name: "Upload artifact"
55-
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # pin@v4
64+
- name: "Upload poutine artifact"
65+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5666
with:
57-
name: SARIF file
58-
path: results.sarif
67+
name: Poutine Results SARIF
68+
path: poutine_results.sarif
5969
retention-days: 28
70+
71+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
72+
# format to the repository Actions tab.
73+
- name: "Upload ossf artifact"
74+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
75+
with:
76+
name: OSSF Results SARIF
77+
path: ossf_results.sarif
78+
retention-days: 28
79+
80+
# Upload the results to GitHub's code scanning dashboard.
81+
- name: "Upload to poutine to code-scanning"
82+
uses: github/codeql-action/upload-sarif@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3
83+
with:
84+
sarif_file: poutine_results.sarif
85+
6086
# Upload the results to GitHub's code scanning dashboard.
61-
- name: "Upload to code-scanning"
62-
uses: github/codeql-action/upload-sarif@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # pin@v3
87+
- name: "Upload to ossf to code-scanning"
88+
uses: github/codeql-action/upload-sarif@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3
6389
with:
64-
sarif_file: results.sarif
90+
sarif_file: ossf_results.sarif

.github/workflows/weekly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# To guarantee Maintained check is occasionally updated. See
1313
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1414
scorecard:
15-
uses: ./.github/workflows/scorecard.yml
15+
uses: ./.github/workflows/supplychain.yml
1616
secrets: inherit
1717
permissions:
1818
id-token: write

0 commit comments

Comments
 (0)