Skip to content

Commit fd0c83e

Browse files
Merge branch 'main'
Signed-off-by: sarankumar1325 <120080287+sarankumar1325@users.noreply.github.com>
2 parents 600a627 + 511bca5 commit fd0c83e

19 files changed

Lines changed: 328 additions & 207 deletions

‎.github/aw/actions-lock.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"entries": {
3-
"github/gh-aw-actions/setup@v1.0.1": {
3+
"github/gh-aw-actions/setup@v1.4.0": {
44
"repo": "github/gh-aw-actions/setup",
5-
"version": "v1.0.1",
6-
"sha": "221ba4f4319de6b8e809d1a15528b3ae6a818aa5"
5+
"version": "v1.4.0",
6+
"sha": "b907753c079ddd7d6829a0d8c24e02e818b4b45f"
77
}
88
}
99
}

‎.github/dependabot.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,28 @@
55

66
version: 2
77
updates:
8+
# Minor and patch updates are grouped per ecosystem; major updates get individual PRs for careful review.
89
- package-ecosystem: "gomod"
910
directory: "/"
1011
schedule:
1112
interval: "weekly"
13+
groups:
14+
minor-gomod-dependencies:
15+
update-types: [minor, patch]
1216
- package-ecosystem: "npm"
1317
directory: "/ui"
1418
schedule:
1519
interval: "weekly"
20+
groups:
21+
minor-npm-dependencies:
22+
update-types: [minor, patch]
1623
- package-ecosystem: "docker"
1724
directory: "/"
1825
schedule:
1926
interval: "weekly"
27+
groups:
28+
minor-docker-dependencies:
29+
update-types: [minor, patch]
2030
- package-ecosystem: "github-actions"
2131
directory: "/"
2232
schedule:
@@ -26,5 +36,7 @@ updates:
2636
patterns:
2737
- "github/codeql-action"
2838
- "github/codeql-action/*"
39+
minor-actions-dependencies:
40+
update-types: [minor, patch]
2941
cooldown:
3042
default-days: 7
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
cd "$(dirname "$0")"
5+
export GH_REPO=fixture/fixture PR_TRIAGE_WRITER_LOGIN='triage-app[bot]'
6+
7+
gh() {
8+
if [[ $2 == --paginate ]]; then
9+
printf '[]\n'
10+
jq -nc --arg author "$author" --arg body "$body" '[{user:{login:$author}, body:$body}]'
11+
else
12+
echo false
13+
fi
14+
}
15+
export -f gh
16+
17+
check() {
18+
export author="$1" body="$2"
19+
local actual
20+
actual=$(bash pr-already-triaged.sh 1)
21+
if [[ $actual != "$3" ]]; then
22+
printf 'author=%s body=%s: expected %s, got %s\n' "$author" "$body" "$3" "$actual" >&2
23+
exit 1
24+
fi
25+
}
26+
27+
check 'triage-app[bot]' '### AI Assessment: Missing Details' true
28+
check 'github-actions[bot]' '### AI Assessment: Invalid' true
29+
check contributor '### AI Assessment: Missing Details' false
30+
check 'triage-app[bot]' 'Unrelated comment' false
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
pr="repos/${GH_REPO}/issues/$1"
5+
labels=$(gh api "$pr" --jq '[.labels[].name] | any(. == "waiting-for-reply" or . == "invalid")')
6+
if [[ "$labels" == true ]]; then
7+
echo true
8+
exit 0
9+
fi
10+
11+
# The assessment stays on the PR even after a maintainer removes its label.
12+
gh api --paginate "$pr/comments?per_page=100" \
13+
| jq --arg writer "${PR_TRIAGE_WRITER_LOGIN:?set the login that posts triage assessments}" \
14+
'any(.[]; (.user.login == "github-actions[bot]" or .user.login == $writer) and
15+
(.body | test("(?m)^### AI Assessment: (Invalid|Missing Details)\\s*$")))' \
16+
| jq -s 'any'

‎.github/workflows/code-scanning.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
4545

4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
47+
uses: github/codeql-action/init@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
4848
with:
4949
languages: ${{ matrix.language }}
5050
build-mode: ${{ matrix.build-mode }}
@@ -61,13 +61,13 @@ jobs:
6161
threat-models: [ ]
6262
- name: Setup proxy for registries
6363
id: proxy
64-
uses: github/codeql-action/start-proxy@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
64+
uses: github/codeql-action/start-proxy@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
6565
with:
6666
registries_credentials: ${{ secrets.GITHUB_REGISTRIES_PROXY }}
6767
language: ${{ matrix.language }}
6868

6969
- name: Setup Go
70-
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
70+
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
7171
if: matrix.language == 'go'
7272
with:
7373
go-version-file: "go.mod"
@@ -86,10 +86,10 @@ jobs:
8686
uses: ./.github/actions/build-ui
8787

8888
- name: Autobuild
89-
uses: github/codeql-action/autobuild@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
89+
uses: github/codeql-action/autobuild@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
9090

9191
- name: Perform CodeQL Analysis
92-
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
92+
uses: github/codeql-action/analyze@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4
9393
env:
9494
CODEQL_PROXY_HOST: ${{ steps.proxy.outputs.proxy_host }}
9595
CODEQL_PROXY_PORT: ${{ steps.proxy.outputs.proxy_port }}

‎.github/workflows/docker-publish.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
# https://github.com/sigstore/cosign-installer
4747
- name: Install cosign
4848
if: github.event_name != 'pull_request'
49-
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 #v4.1.2
49+
uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 #v4.1.3
5050
with:
51-
cosign-release: "v3.1.3"
51+
cosign-release: "v3.1.4"
5252

5353
# Set up BuildKit Docker container builder to be able to build
5454
# multi-platform images and export cache

‎.github/workflows/docs-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: ./.github/actions/build-ui
2121

2222
- name: Set up Go
23-
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
23+
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
2424
with:
2525
go-version-file: 'go.mod'
2626

‎.github/workflows/go.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: ./.github/actions/build-ui
3030

3131
- name: Set up Go
32-
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
32+
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
3333
with:
3434
go-version-file: "go.mod"
3535

‎.github/workflows/goreleaser.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: ./.github/actions/build-ui
2121

2222
- name: Set up Go
23-
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
23+
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
2424
with:
2525
go-version-file: "go.mod"
2626

‎.github/workflows/issue-triage.lock.yml‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)