Skip to content

Commit ef1e664

Browse files
committed
fix(findings): adjusting suppressions within ASH on false positive findings
1 parent 951016c commit ef1e664

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/ash-build-and-scan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
12
name: ASH - Core Pipeline
23
on:
34
push:
@@ -26,6 +27,7 @@ jobs:
2627
ARCH: ubuntu-latest
2728
SUMMARY_FILE: "ASH Scan Results Summary.md"
2829
permissions:
30+
#checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
2931
actions: read
3032
checks: write
3133
contents: read
@@ -113,6 +115,7 @@ jobs:
113115
needs: []
114116
runs-on: ubuntu-latest
115117
permissions:
118+
#checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
116119
contents: read
117120
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
118121

@@ -148,6 +151,7 @@ jobs:
148151
needs: []
149152
runs-on: ubuntu-latest
150153
permissions:
154+
#checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
151155
contents: write
152156
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
153157

.github/workflows/ash-scan-validation.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: ASH - Scan Validation #checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
1+
#checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
2+
name: ASH - Scan Validation
23

34
on:
45
push:

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
12
name: ASH - Matrix Unit Tests
23

34
on:
@@ -16,7 +17,8 @@ jobs:
1617
unit-test:
1718
name: Unit Test Python
1819
runs-on: ${{ matrix.runner }}
19-
permissions: #checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
20+
permissions:
21+
#checkov:skip=CKV2_GHA_1:The permissions are not set to write-all at the top-level, or any level
2022
actions: read
2123
checks: write
2224
pull-requests: write

automated_security_helper/schemas/cyclonedx_bom_1_6_schema/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4594,17 +4594,17 @@ class Component(BaseModel):
45944594
None,
45954595
description="Asserts the identity of the component using the OmniBOR Artifact ID. The OmniBOR, if specified, must be valid and conform to the specification defined at: [https://www.iana.org/assignments/uri-schemes/prov/gitoid](https://www.iana.org/assignments/uri-schemes/prov/gitoid). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
45964596
examples=[
4597-
# pragma: allowlist secret - Not actually a secret
4597+
# pragma: allowlist nextline secret - Not actually a secret
45984598
"gitoid:blob:sha1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
4599-
# pragma: allowlist secret - Not actually a secret
4599+
# pragma: allowlist nextline secret - Not actually a secret
46004600
"gitoid:blob:sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
46014601
],
46024602
title="OmniBOR Artifact Identifier (gitoid)",
46034603
)
46044604
swhid: Optional[List[str]] = Field(
46054605
None,
46064606
description="Asserts the identity of the component using the Software Heritage persistent identifier (SWHID). The SWHID, if specified, must be valid and conform to the specification defined at: [https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html](https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
4607-
# pragma: allowlist secret - Not actually a secret
4607+
# pragma: allowlist nextline secret - Not actually a secret
46084608
examples=["swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2"],
46094609
title="Software Heritage Identifier",
46104610
)

0 commit comments

Comments
 (0)