Skip to content

Commit

Permalink
add codeowners file
Browse files Browse the repository at this point in the history
  • Loading branch information
mythri-garaga committed Sep 6, 2022
1 parent 95e33aa commit df807a1
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence, these accounts
# will be requested for review when someone opens a pull request.
* @aws/aws-ecs-agent
1 change: 1 addition & 0 deletions .github/workflows/gitsecrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: GitSecretsScan

on: [push, pull_request]

permissions: read-all
jobs:
git-secret-check:
name: Git Secrets Scan
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Linux

on: [pull_request]

permissions: read-all
jobs:
unit-tests:
name: Linux unit tests
Expand All @@ -13,7 +14,15 @@ jobs:
- name: get GO_VERSION
run: |
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
echo "GO_VERSION=$(cat GO_VERSION)" >> $GITHUB_ENV
set -eou pipefail
go_version=$(cat -e GO_VERSION)
go_version=${go_version%?}
go_version_re="^(\d+\.)?(\d+\.)?(\*|\d+)$"
if ! [[ $go_version =~ $go_version_re ]] ; then
echo "invalid GO version"
exit 1
fi
echo "::set-output name=GO_VERSION::$go_version"
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Static Checks

on: [push, pull_request]

permissions: read-all
jobs:
static-check:
name: Static Analysis
Expand All @@ -13,7 +14,15 @@ jobs:
- name: get GO_VERSION
run: |
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
echo "GO_VERSION=$(cat GO_VERSION)" >> $GITHUB_ENV
set -eou pipefail
go_version=$(cat -e GO_VERSION)
go_version=${go_version%?}
go_version_re="^(\d+\.)?(\d+\.)?(\*|\d+)$"
if ! [[ $go_version =~ $go_version_re ]] ; then
echo "invalid GO version"
exit 1
fi
echo "::set-output name=GO_VERSION::$go_version"
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Windows

on: [pull_request]

permissions: read-all
jobs:
windows-unit-tests:
name: Windows unit tests
Expand All @@ -14,7 +15,13 @@ jobs:
run: |
cd "$Env:GITHUB_WORKSPACE"
cd "src/github.com/aws/amazon-ecs-agent"
echo "GO_VERSION_WINDOWS=$(type GO_VERSION_WINDOWS)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
$go_version_win = $(type GO_VERSION_WINDOWS)
$go_version_re = "^(\d+\.)?(\d+\.)?(\*|\d+)$"
if ($go_version_win -match $go_version_re) {
echo "invalid GO version"
exit 1
}
Write-Output "::set-output name=GO_VERSION_WINDOWS::$go_version_win"
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION_WINDOWS }}
Expand Down

0 comments on commit df807a1

Please sign in to comment.