Skip to content

Commit f9267c0

Browse files
committed
ci: move gistream to shared workflow and add pragmas
1 parent b46b372 commit f9267c0

File tree

4 files changed

+10
-60
lines changed

4 files changed

+10
-60
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
lint-build-test:
1010
name: Lint, Build & Test
1111
uses: devnw/workflows/.github/workflows/build.yml@main
12-
secrets: inherit
12+
secrets: inherit # pragma: allowlist secret

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ jobs:
88
update-readme:
99
name: Update README with Go documentation
1010
uses: devnw/workflows/.github/workflows/docs.yml@main
11-
secrets: inherit
11+
secrets: inherit # pragma: allowlist secret

.github/workflows/gitstream.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,9 @@ name: gitStream workflow automation
44

55
on:
66
workflow_dispatch:
7-
inputs:
8-
client_payload:
9-
description: The Client payload
10-
required: true
11-
full_repository:
12-
description: the repository name include the owner in `owner/repo_name` format
13-
required: true
14-
head_ref:
15-
description: the head sha
16-
required: true
17-
base_ref:
18-
description: the base ref
19-
required: true
20-
installation_id:
21-
description: the installation id
22-
required: false
23-
resolver_url:
24-
description: the resolver url to pass results to
25-
required: true
26-
resolver_token:
27-
description: Optional resolver token for resolver service
28-
required: false
29-
default: ''
307

318
jobs:
329
gitStream:
33-
timeout-minutes: 5
34-
runs-on: ubuntu-latest
3510
name: gitStream workflow automation
36-
steps:
37-
- name: Evaluate Rules
38-
uses: linear-b/gitstream-github-action@v1
39-
id: rules-engine
40-
with:
41-
full_repository: ${{ github.event.inputs.full_repository }}
42-
head_ref: ${{ github.event.inputs.head_ref }}
43-
base_ref: ${{ github.event.inputs.base_ref }}
44-
client_payload: ${{ github.event.inputs.client_payload }}
45-
installation_id: ${{ github.event.inputs.installation_id }}
46-
resolver_url: ${{ github.event.inputs.resolver_url }}
47-
resolver_token: ${{ github.event.inputs.resolver_token }}
11+
uses: devnw/workflows/.github/workflows/gitstream.yml@main
12+
secrets: inherit # pragma: allowlist secret

.secrets.baseline

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
{
7373
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
7474
},
75+
{
76+
"path": "detect_secrets.filters.common.is_baseline_file",
77+
"filename": ".secrets.baseline"
78+
},
7579
{
7680
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
7781
"min_level": 2
@@ -101,25 +105,6 @@
101105
"path": "detect_secrets.filters.heuristic.is_templated_secret"
102106
}
103107
],
104-
"results": {
105-
".github/workflows/build.yml": [
106-
{
107-
"type": "Secret Keyword",
108-
"filename": ".github/workflows/build.yml",
109-
"hashed_secret": "3e26d6750975d678acb8fa35a0f69237881576b0",
110-
"is_verified": false,
111-
"line_number": 12
112-
}
113-
],
114-
".github/workflows/docs.yml": [
115-
{
116-
"type": "Secret Keyword",
117-
"filename": ".github/workflows/docs.yml",
118-
"hashed_secret": "3e26d6750975d678acb8fa35a0f69237881576b0",
119-
"is_verified": false,
120-
"line_number": 11
121-
}
122-
]
123-
},
124-
"generated_at": "2023-03-27T20:03:18Z"
108+
"results": {},
109+
"generated_at": "2023-03-27T20:44:00Z"
125110
}

0 commit comments

Comments
 (0)