Skip to content

Commit 0ce6d80

Browse files
authored
fix: updating main branch name (#5645)
1 parent b2fc822 commit 0ce6d80

File tree

10 files changed

+87
-88
lines changed

10 files changed

+87
-88
lines changed

.github/workflows/codeql-analysis.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [main]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [main]
2020
schedule:
21-
- cron: '41 22 * * 3'
21+
- cron: "41 22 * * 3"
2222

2323
jobs:
2424
analyze:
@@ -28,40 +28,40 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
language: [ 'javascript', 'python' ]
31+
language: ["javascript", "python"]
3232
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
3333
# Learn more:
3434
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
3535

3636
steps:
37-
- name: Checkout repository
38-
uses: actions/checkout@v4
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
3939

40-
# Initializes the CodeQL tools for scanning.
41-
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v2
43-
with:
44-
languages: ${{ matrix.language }}
45-
# If you wish to specify custom queries, you can do so here or in a config file.
46-
# By default, queries listed here will override any specified in a config file.
47-
# Prefix the list here with "+" to use these queries and those in the config file.
48-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v2
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4949

50-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51-
# If this step fails, then you should remove it and run the build manually (see below)
52-
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v2
5454

55-
# ℹ️ Command-line programs to run using the OS shell.
56-
# 📚 https://git.io/JvXDl
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
5757

58-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59-
# and modify them (or add more) to build your code if your project
60-
# uses a compiled language
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
6161

62-
#- run: |
63-
# make bootstrap
64-
# make release
62+
#- run: |
63+
# make bootstrap
64+
# make release
6565

66-
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v2
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v2

.github/workflows/deploy-docs-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test documentation deployment
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- main
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

.github/workflows/deploy-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

.github/workflows/python.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Coverage per file
5151
# All modified files should meet the minimum code coverage requirement.
5252
run: |
53-
export MODIFIED_FILES=$(git diff master...HEAD --name-only | grep -E '\.py$')
53+
export MODIFIED_FILES=$(git diff main...HEAD --name-only | grep -E '\.py$')
5454
export FAILED_COVERAGE_PER_FILE=$(python -c "import json;files=json.load(open('coverage.json'))['files'];covs=map(lambda k, v: (k, v['summary']['percent_covered_display']),files.keys(),files.values()); f=filter(lambda cov:int(cov[1])<50,covs); print('\n'.join('{:<68}{:>3}%'.format(k,v) for k,v in f))")
5555
export FAILED_COVERAGE_FILES=(); echo "$FAILED_COVERAGE_PER_FILE" | while read -r line; do FAILED_COVERAGE_FILES+=${line%%[[:space:]]*};done
5656

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Dispatch helps us effectively manage security incidents by deeply integrating wi
1010

1111
This means you can let Dispatch focus on creating resources, assembling participants, sending out notifications, tracking tasks, and assisting with post-incident reviews; allowing you to focus on actually fixing the issue!
1212

13-
![](https://github.com/Netflix/dispatch/raw/master/docs/images/screenshots/thumb-1.png) ![](https://github.com/Netflix/dispatch/raw/master/docs/images/screenshots/thumb-2.png) ![](https://github.com/Netflix/dispatch/raw/master/docs/images/screenshots/thumb-3.png) ![](https://github.com/Netflix/dispatch/raw/master/docs/images/screenshots/thumb-4.png)
13+
![](https://github.com/Netflix/dispatch/raw/main/docs/images/screenshots/thumb-1.png) ![](https://github.com/Netflix/dispatch/raw/main/docs/images/screenshots/thumb-2.png) ![](https://github.com/Netflix/dispatch/raw/main/docs/images/screenshots/thumb-3.png) ![](https://github.com/Netflix/dispatch/raw/main/docs/images/screenshots/thumb-4.png)
1414

1515
## Project resources
1616

docker/Dockerfile

+48-48
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit", "-c"]
1212

1313
# Get and set up Node for front-end asset building
1414
RUN apt-get update && apt-get install -y --no-install-recommends \
15-
# Needed for fetching stuff
16-
ca-certificates \
17-
wget \
18-
&& rm -rf /var/lib/apt/lists/*
15+
# Needed for fetching stuff
16+
ca-certificates \
17+
wget \
18+
&& rm -rf /var/lib/apt/lists/*
1919

2020
RUN wget --quiet -O - https://deb.nodesource.com/setup_20.x | bash - \
21-
&& apt-get install -y nodejs --no-install-recommends
21+
&& apt-get install -y nodejs --no-install-recommends
2222

2323
ARG SOURCE_COMMIT
2424
ENV DISPATCH_BUILD=${SOURCE_COMMIT:-unknown}
2525
LABEL org.opencontainers.image.revision=$SOURCE_COMMIT
26-
LABEL org.opencontainers.image.licenses="https://github.com/netflix/dispatch/blob/${SOURCE_COMMIT:-master}/LICENSE"
26+
LABEL org.opencontainers.image.licenses="https://github.com/netflix/dispatch/blob/${SOURCE_COMMIT:-main}/LICENSE"
2727

2828
ARG DISPATCH_LIGHT_BUILD
2929
ENV DISPATCH_LIGHT_BUILD=${DISPATCH_LIGHT_BUILD}
@@ -49,11 +49,11 @@ ENV VITE_DISPATCH_COMMIT_MESSAGE="Unknown"
4949

5050
COPY . /usr/src/dispatch/
5151
RUN YARN_CACHE_FOLDER="$(mktemp -d)" \
52-
&& export YARN_CACHE_FOLDER \
53-
&& pushd /usr/src/dispatch \
54-
&& python setup.py bdist_wheel \
55-
&& rm -r "$YARN_CACHE_FOLDER" \
56-
&& mv /usr/src/dispatch/dist /dist
52+
&& export YARN_CACHE_FOLDER \
53+
&& pushd /usr/src/dispatch \
54+
&& python setup.py bdist_wheel \
55+
&& rm -r "$YARN_CACHE_FOLDER" \
56+
&& mv /usr/src/dispatch/dist /dist
5757

5858
# This is the image to be run
5959
FROM python:3.11.10-slim-bullseye
@@ -74,51 +74,51 @@ RUN groupadd -r dispatch && useradd -r -m -g dispatch dispatch
7474

7575
# Sane defaults for pip
7676
ENV PIP_NO_CACHE_DIR=off \
77-
PIP_DISABLE_PIP_VERSION_CHECK=1 \
78-
# Dispatch config params
79-
DISPATCH_CONF=/etc/dispatch
77+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
78+
# Dispatch config params
79+
DISPATCH_CONF=/etc/dispatch
8080

8181
RUN apt-get update && apt-get install -y --no-install-recommends \
82-
# Needed for fetching stuff
83-
ca-certificates \
84-
wget gnupg \
85-
&& rm -rf /var/lib/apt/lists/*
82+
# Needed for fetching stuff
83+
ca-certificates \
84+
wget gnupg \
85+
&& rm -rf /var/lib/apt/lists/*
8686

8787
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
88-
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
88+
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
8989

9090
RUN wget --quiet -O - https://deb.nodesource.com/setup_20.x | bash -
9191

9292
COPY --from=sdist /dist/*.whl /tmp/dist/
9393
RUN buildDeps="" \
94-
&& apt-get update \
95-
&& apt-get install -y --no-install-recommends "$buildDeps" \
96-
# remove internal index when internal plugins are separated
97-
&& pip install -U /tmp/dist/*.whl \
98-
&& apt-get purge -y --auto-remove "$buildDeps" \
99-
# We install run-time dependencies strictly after
100-
# build dependencies to prevent accidental collusion.
101-
# These are also installed last as they are needed
102-
# during container run and can have the same deps w/
103-
&& apt-get install -y --no-install-recommends \
104-
pkg-config postgresql-client-14 nodejs \
105-
&& apt-get clean \
106-
&& rm -rf /var/lib/apt/lists/* \
107-
# mjml has to be installed differently here because
108-
# after node 14, docker will install npm files at the
109-
# root directoy and fail, so we have to create a new
110-
# directory and use it for the install then copy the
111-
# files to the root directory to maintain backwards
112-
# compatibility for email generation
113-
&& mkdir -p /mjml_install \
114-
# if our workdir is /, then pushd/popd doesn't work
115-
# for the npm install. It still tries to install in /,
116-
# which npm can't do
117-
&& cd /mjml_install \
118-
&& npm install --no-cache-dir mjml \
119-
&& mv node_modules / \
120-
&& cd / \
121-
&& rm -rf /mjml_install
94+
&& apt-get update \
95+
&& apt-get install -y --no-install-recommends "$buildDeps" \
96+
# remove internal index when internal plugins are separated
97+
&& pip install -U /tmp/dist/*.whl \
98+
&& apt-get purge -y --auto-remove "$buildDeps" \
99+
# We install run-time dependencies strictly after
100+
# build dependencies to prevent accidental collusion.
101+
# These are also installed last as they are needed
102+
# during container run and can have the same deps w/
103+
&& apt-get install -y --no-install-recommends \
104+
pkg-config postgresql-client-14 nodejs \
105+
&& apt-get clean \
106+
&& rm -rf /var/lib/apt/lists/* \
107+
# mjml has to be installed differently here because
108+
# after node 14, docker will install npm files at the
109+
# root directoy and fail, so we have to create a new
110+
# directory and use it for the install then copy the
111+
# files to the root directory to maintain backwards
112+
# compatibility for email generation
113+
&& mkdir -p /mjml_install \
114+
# if our workdir is /, then pushd/popd doesn't work
115+
# for the npm install. It still tries to install in /,
116+
# which npm can't do
117+
&& cd /mjml_install \
118+
&& npm install --no-cache-dir mjml \
119+
&& mv node_modules / \
120+
&& cd / \
121+
&& rm -rf /mjml_install
122122

123123
EXPOSE 8000
124124
VOLUME /var/lib/dispatch/files
@@ -128,4 +128,4 @@ CMD ["server", "start", "dispatch.main:app", "--host=0.0.0.0"]
128128

129129
ARG SOURCE_COMMIT
130130
LABEL org.opencontainers.image.revision=$SOURCE_COMMIT
131-
LABEL org.opencontainers.image.licenses="https://github.com/netflix/dispatch/blob/${SOURCE_COMMIT:-master}/LICENSE"
131+
LABEL org.opencontainers.image.licenses="https://github.com/netflix/dispatch/blob/${SOURCE_COMMIT:-main}/LICENSE"

docs/docs/administration/installation.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Note: Dispatch will not start without at least a few required configuration vari
3333
:::
3434

3535
:::info
36-
Note: Dispatch does not contain any data by default. For evaluation purposes, we do provide an example data set located [here](https://github.com/Netflix/dispatch/blob/master/data/dispatch-sample-data.dump). For instructions on how to restore this data, see [here](cli.mdx).
36+
Note: Dispatch does not contain any data by default. For evaluation purposes, we do provide an example data set located [here](https://github.com/Netflix/dispatch/blob/main/data/dispatch-sample-data.dump). For instructions on how to restore this data, see [here](cli.mdx).
3737
:::
3838

3939
To start, run the install script:

docs/docs/administration/settings/messaging.mdx

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Dispatch supports sending email notifications to participants of, for example, a
44

55
## Notification templates
66

7-
Templates for emails are [part](https://github.com/Netflix/dispatch/tree/master/src/dispatch/messaging/email/templates) of Dispatch
7+
Templates for emails are [part](https://github.com/Netflix/dispatch/tree/main/src/dispatch/messaging/email/templates) of Dispatch
88
and are [Jinja](https://jinja.palletsprojects.com/) templates that during runtime are compiled into [MJML](https://mjml.io/) format.
99

1010
There is a way to customize these templates. To do this, if you run Dispatch with [Docker Compose](https://github.com/Netflix/dispatch-docker/),
@@ -18,9 +18,9 @@ mount a volume with a customized templates dir as part of the docker compose:
1818
- "../dispatch-templates/messaging-email-templates:/usr/local/lib/python3.11/site-packages/dispatch/messaging/email/templates"
1919
```
2020

21-
Such approach allows you to customize the common template for *all projects*.
21+
Such approach allows you to customize the common template for _all projects_.
2222

23-
You can also "patch" the templates *per project*. Create a folder per project (identified by project id):
23+
You can also "patch" the templates _per project_. Create a folder per project (identified by project id):
2424

2525
```
2626
dispatch/messaging/email/templates/project_id/<project_id>/base.mjml
@@ -33,7 +33,6 @@ otherwise the resolution process will gracefully fall back to the default templa
3333
dispatch/messaging/email/templates/base.mjml
3434
```
3535

36-
3736
## Markdown in the notifications
3837

3938
:::warning

docs/docs/support.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Once you've submitted the issue, it will be handled by our triage team, typicall
2323
2424
## Support Versions
2525

26-
At any given time, we will provide security support for the `master` branch and the two most recent releases.
26+
At any given time, we will provide security support for the `main` branch and the two most recent releases.
2727

2828
## Disclosure Process
2929

docs/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const config = {
5050
docs: {
5151
sidebarPath: require.resolve("./sidebars.js"),
5252
editUrl: ({ docPath }) =>
53-
`https://github.com/netflix/dispatch/edit/master/docs/docs/${docPath}`,
53+
`https://github.com/netflix/dispatch/edit/main/docs/docs/${docPath}`,
5454
},
5555
theme: {
5656
customCss: require.resolve("./src/css/custom.css"),

0 commit comments

Comments
 (0)