From e0a210baf706e92074340aabf08d1d1cdb1e3aa7 Mon Sep 17 00:00:00 2001
From: Chang Liu <lc12251109@gmail.com>
Date: Mon, 8 Feb 2021 12:47:37 -0800
Subject: [PATCH] Updating Github actions and files to use main branch. (#1023)
 (Cherry picked from commit dc291c2345cdb9885d7b99dff835df08bc3b15fd)

---
 .github/workflows/ci.yml | 2 +-
 CONTRIBUTING.md          | 2 +-
 README.md                | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 14bff4e14c..b8f9e09c7d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,7 +6,7 @@ on:
       - '*'
   push:
     branches:
-      - master
+      - main
       - opendistro-*
 
 jobs:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d37b4f047d..c1119853fd 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -22,7 +22,7 @@ When filing an issue, please check [existing open](../../issues), or [recently c
 ## Contributing via Pull Requests
 Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
 
-1. You are working against the latest source on the *master* branch.
+1. You are working against the latest source on the *main* branch.
 2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
 3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
 
diff --git a/README.md b/README.md
index 17c8772e03..ca3b503b55 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-[![CI](https://github.com/opendistro-for-elasticsearch/security/workflows/CI/badge.svg?branch=master)](https://github.com/opendistro-for-elasticsearch/security/actions)
-[![codecov](https://codecov.io/gh/opendistro-for-elasticsearch/security/branch/master/graph/badge.svg)](https://codecov.io/gh/opendistro-for-elasticsearch/security)
+[![CI](https://github.com/opendistro-for-elasticsearch/security/workflows/CI/badge.svg?branch=main)](https://github.com/opendistro-for-elasticsearch/security/actions)
+[![codecov](https://codecov.io/gh/opendistro-for-elasticsearch/security/branch/main/graph/badge.svg)](https://codecov.io/gh/opendistro-for-elasticsearch/security)
 
 # Open Distro for Elasticsearch Security