Skip to content

Commit d56158b

Browse files
committed
Merge remote-tracking branch 'origin/main' into add-allowed-repositories-description-to-docs
2 parents 5a89c3a + c1667e0 commit d56158b

File tree

91 files changed

+1943
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1943
-334
lines changed

.buildkite/pipeline.deploy.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ steps:
66
if: |
77
build.branch == "main"
88
agents:
9-
queue: deploy
9+
queue: elastic-runners
1010
plugins:
11-
ecr#v2.7.0:
12-
login: true
13-
account-ids: ${ECR_ACCOUNT_ID}
11+
- aws-assume-role-with-web-identity#v1.0.0:
12+
role-arn: arn:aws:iam::${ECR_ACCOUNT_ID}:role/pipeline-buildkite-docs-main
13+
- ecr#v2.7.0:
14+
login: true
15+
account-ids: ${ECR_ACCOUNT_ID}
1416

1517
- name: ":ecr: ECR Vulnerabilities Scan"
1618
command: "true"
1719
agents:
18-
queue: deploy
20+
queue: elastic-runners
1921
depends_on: "ecr-push"
2022
plugins:
23+
- aws-assume-role-with-web-identity#v1.0.0:
24+
role-arn: arn:aws:iam::${ECR_ACCOUNT_ID}:role/pipeline-buildkite-docs-main
2125
- buildkite/ecr-scan-results#v1.2.0:
2226
image-name: "${ECR_REPO}:${BUILDKITE_BUILD_NUMBER}"
2327
ignore:
@@ -38,6 +42,9 @@ steps:
3842
- CVE-2023-5678 # openssl 3.0.11-1~deb12u1
3943
- CVE-2023-50495 # ncurses 6.4-4
4044
- CVE-2024-0567 # gnutls28 3.7.9-2+deb12u1
45+
- CVE-2023-50387 # systemd 252.17-1~deb12u1
46+
- CVE-2024-0553 # gnutls28 3.7.9-2
47+
- CVE-2024-0567 # gnutls28 3.7.9-2+deb12u1
4148

4249
# If the current user is part of the deploy team, then wait for everything to
4350
# finish before deploying
@@ -61,8 +68,11 @@ steps:
6168
concurrency: 1
6269
concurrency_group: docs-deploy
6370
agents:
64-
queue: deploy
71+
queue: elastic-runners
6572
command: scripts/deploy-ecs
73+
plugins:
74+
- aws-assume-role-with-web-identity#v1.0.0:
75+
role-arn: arn:aws:iam::${ECR_ACCOUNT_ID}:role/pipeline-buildkite-docs-main
6676

6777
- wait
6878

.markdownlint.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ MD005: true
2121
MD006: true
2222

2323
# MD007/ul-indent - Unordered list indentation
24-
MD007:
24+
# (This setting is temporarily disabled. The intention is to make its value 4, as doing this would allow the nesting of 3 bullet points and improved code block handling)
25+
# MD007:
2526
# Spaces for indent
26-
indent: 2
27+
# indent: 2
2728
# Whether to indent the first level of the list
28-
start_indented: false
29+
# start_indented: false
2930

3031
# MD009/no-trailing-spaces - Trailing spaces
3132
MD009:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ After completing the relevant 'Before you start' steps above:
5858
foreman start
5959
```
6060

61-
**Note:** After stopping the non-containerized server, simply run `foreman start` to re-start the server again.
61+
**Note:** After stopping the non-containerized server, simply run `foreman start` to re-start the server again. If, however, the `foreman start` command fails to run successfully, try re-running the `bin/setup` command again to update any dependencies before running `foreman start` again.
6262

6363
For containerized development, run the following:
6464

app/models/beta_pages.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
class BetaPages
22
def self.all
33
[
4-
'agent/clusters',
5-
'apis/rest-api/clusters',
6-
'apis/rest-api/pipeline-templates'
4+
'pipelines/cluster-queue-metrics'
75
]
86
end
97
end

data/content/environment_variables.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ variables:
158158
values:
159159
- true
160160
- false
161+
- name: BUILDKITE_CLUSTER_ID
162+
desc: |
163+
The UUID value of the cluster, but only if the build has an associated `cluster_queue`. Otherwise, this environment variable is not set.
164+
modifiable: false
165+
example: "4735ba57-80d0-46e2-8fa0-b28223a86586"
161166
- name: BUILDKITE_COMMAND
162167
desc: |
163168
The command that will be run for the job.

data/graphql/schema.graphql

Lines changed: 97 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,11 @@ type Annotation implements Node {
507507
createdAt: DateTime!
508508
id: ID!
509509

510+
"""
511+
The priority of the annotation
512+
"""
513+
priority: Int!
514+
510515
"""
511516
The visual style of the annotation
512517
"""
@@ -550,6 +555,21 @@ type AnnotationEdge {
550555
node: Annotation
551556
}
552557

558+
"""
559+
The different orders you can sort annotations by
560+
"""
561+
enum AnnotationOrder {
562+
"""
563+
Order by priority, then by the most recently created annotations first
564+
"""
565+
PRIORITY_RECENTLY_CREATED
566+
567+
"""
568+
Order by the most recently created annotations first
569+
"""
570+
RECENTLY_CREATED
571+
}
572+
553573
"""
554574
The visual style of the annotation
555575
"""
@@ -701,12 +721,13 @@ type AuditActor {
701721
"""
702722
Kinds of actors which can perform audit events
703723
"""
704-
union AuditActorNode = User
724+
union AuditActorNode = Agent | User
705725

706726
"""
707727
All the possible types of actors in an Audit Event
708728
"""
709729
enum AuditActorType {
730+
AGENT
710731
USER
711732
}
712733

@@ -825,6 +846,11 @@ enum AuditEventType {
825846
SCM_SERVICE_CREATED
826847
SCM_SERVICE_DELETED
827848
SCM_SERVICE_UPDATED
849+
SECRET_CREATED
850+
SECRET_DELETED
851+
SECRET_QUERIED
852+
SECRET_READ
853+
SECRET_UPDATED
828854
SSO_PROVIDER_CREATED
829855
SSO_PROVIDER_DELETED
830856
SSO_PROVIDER_DISABLED
@@ -899,7 +925,7 @@ type AuditSubject {
899925
"""
900926
Kinds of subjects which can have audit events performed on them
901927
"""
902-
union AuditSubjectNode = APIAccessToken | AgentToken | AuthorizationBitbucket | AuthorizationGitHub | AuthorizationGitHubEnterprise | Cluster | ClusterPermission | ClusterQueue | ClusterQueueToken | ClusterToken | Email | NotificationServiceSlack | NotificationServiceWebhook | Organization | OrganizationBanner | OrganizationInvitation | OrganizationMember | Pipeline | PipelineSchedule | PipelineTemplate | SCMPipelineSettings | SCMRepositoryHost | SCMService | SSOProviderGitHubApp | SSOProviderGoogleGSuite | SSOProviderSAML | Subscription | Suite | TOTP | Team | TeamMember | TeamPipeline | TeamSuite | User
928+
union AuditSubjectNode = APIAccessToken | AgentToken | AuthorizationBitbucket | AuthorizationGitHub | AuthorizationGitHubEnterprise | Cluster | ClusterPermission | ClusterQueue | ClusterQueueToken | ClusterToken | Email | NotificationServiceSlack | NotificationServiceWebhook | Organization | OrganizationBanner | OrganizationInvitation | OrganizationMember | Pipeline | PipelineSchedule | PipelineTemplate | SCMPipelineSettings | SCMRepositoryHost | SCMService | SSOProviderGitHubApp | SSOProviderGoogleGSuite | SSOProviderSAML | Secret | Subscription | Suite | TOTP | Team | TeamMember | TeamPipeline | TeamSuite | User
903929

904930
"""
905931
All the possible types of subjects in an Audit Event
@@ -924,6 +950,7 @@ enum AuditSubjectType {
924950
SCM_PIPELINE_SETTINGS
925951
SCM_REPOSITORY_HOST
926952
SCM_SERVICE
953+
SECRET
927954
SSO_PROVIDER
928955
SUBSCRIPTION
929956
SUITE
@@ -1104,6 +1131,11 @@ type Build implements Node {
11041131
Returns the last _n_ elements from the list.
11051132
"""
11061133
last: Int
1134+
1135+
"""
1136+
Order the annotations
1137+
"""
1138+
order: AnnotationOrder = RECENTLY_CREATED
11071139
style: [AnnotationStyle!]
11081140
): AnnotationConnection
11091141

@@ -1275,6 +1307,13 @@ input BuildAnnotateInput {
12751307
"""
12761308
context: String = "default"
12771309

1310+
"""
1311+
Priority of the annotation. By default annotations have a priority of 3.
1312+
Annotations with a priority of 10 will be shown first, and annotations with a
1313+
priority of 1 will be shown last.
1314+
"""
1315+
priority: Int = 3
1316+
12781317
"""
12791318
The style of the annotation. The default is `DEFAULT`
12801319
"""
@@ -1484,46 +1523,6 @@ type BuildRebuildPayload {
14841523
rebuild: Build!
14851524
}
14861525

1487-
"""
1488-
All the possible build retention periods, depending on your billing plan
1489-
"""
1490-
enum BuildRetentionPeriods {
1491-
"""
1492-
30 days
1493-
"""
1494-
DAYS_30
1495-
1496-
"""
1497-
60 days
1498-
"""
1499-
DAYS_60
1500-
1501-
"""
1502-
90 days
1503-
"""
1504-
DAYS_90
1505-
1506-
"""
1507-
12 months
1508-
"""
1509-
MONTHS_12
1510-
1511-
"""
1512-
18 months
1513-
"""
1514-
MONTHS_18
1515-
1516-
"""
1517-
6 months
1518-
"""
1519-
MONTHS_6
1520-
1521-
"""
1522-
2 years
1523-
"""
1524-
YEARS_2
1525-
}
1526-
15271526
interface BuildSource {
15281527
name: String!
15291528
}
@@ -6324,22 +6323,6 @@ type Pipeline implements Node {
63246323
"""
63256324
branchConfiguration: String
63266325

6327-
"""
6328-
Choose to keep builds or remove them after a set time period. Pipelines are
6329-
scanned once a day for builds that can be removed according to these settings.
6330-
"""
6331-
buildRetentionEnabled: Boolean @deprecated(reason: "Build retention is now determined by your billing plan. This field is no longer used and always returns null.")
6332-
6333-
"""
6334-
The minimum number of builds to keep in the pipeline regardless of how old the builds are.
6335-
"""
6336-
buildRetentionNumber: Int @deprecated(reason: "Build retention is now determined by your billing plan. This field is no longer used and always returns null.")
6337-
6338-
"""
6339-
How long is a build kept before it is automatically removed.
6340-
"""
6341-
buildRetentionPeriod: BuildRetentionPeriods @deprecated(reason: "Build retention is now determined by your billing plan. This field is no longer used and always returns null.")
6342-
63436326
"""
63446327
Returns the builds for this pipeline
63456328
"""
@@ -7759,6 +7742,16 @@ type Query {
77597742
uuid: ID!
77607743
): PipelineTemplate
77617744

7745+
"""
7746+
Find a secret via its uuid. This does not contain the value of the secret or encrypted material.
7747+
"""
7748+
secret(
7749+
"""
7750+
The UUID for the secret i.e. `0bd5ea7c-89b3-4f40-8ca3-ffac805771eb`
7751+
"""
7752+
uuid: ID!
7753+
): Secret
7754+
77627755
"""
77637756
Find an sso provider either using it's slug, or UUID
77647757
"""
@@ -8943,6 +8936,52 @@ type SSOProviderUpdatePayload {
89438936
ssoProvider: SSOProvider!
89448937
}
89458938

8939+
"""
8940+
A secret hosted by Buildkite. This does not contain the secret value or encrypted material.
8941+
"""
8942+
type Secret implements Node {
8943+
"""
8944+
The cluster that the secret belongs to
8945+
"""
8946+
cluster: Cluster
8947+
8948+
"""
8949+
The time this secret was created
8950+
"""
8951+
createdAt: DateTime
8952+
8953+
"""
8954+
A description about what this secret is used for
8955+
"""
8956+
description: String
8957+
8958+
"""
8959+
The time this secret was destroyed
8960+
"""
8961+
destroyedAt: DateTime
8962+
id: ID!
8963+
8964+
"""
8965+
The key value used to name the secret
8966+
"""
8967+
key: String!
8968+
8969+
"""
8970+
The organization that the secret belongs to
8971+
"""
8972+
organization: Organization!
8973+
8974+
"""
8975+
The time this secret was updated
8976+
"""
8977+
updatedAt: DateTime
8978+
8979+
"""
8980+
The public UUID for the secret
8981+
"""
8982+
uuid: ID!
8983+
}
8984+
89468985
interface Step {
89478986
"""
89488987
The conditional evaluated for this step

0 commit comments

Comments
 (0)