-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
729 changed files
with
49,090 additions
and
24,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: true |
30 changes: 30 additions & 0 deletions
30
.github/ISSUE_TEMPLATE/third_party_license_usage_request.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 3rd Party License Request | ||
description: File a request for usage of a 3rd party license in the Amazon ECR credential helpers project. | ||
title: "[3rd Party License Request]: " | ||
labels: "license-request" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this request! | ||
- type: textarea | ||
id: license-request | ||
attributes: | ||
label: License request | ||
value: | | ||
License: <link to license> | ||
- type: textarea | ||
id: use-case | ||
attributes: | ||
label: Use case | ||
description: | | ||
Briefly describe the use case the dependency would resolve. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: other-solutions | ||
attributes: | ||
label: Other solutions considered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: /ecr-login | ||
# Dependencies listed in ecr-login/go.mod | ||
- package-ecosystem: "gomod" | ||
directory: "/ecr-login" | ||
schedule: | ||
interval: daily | ||
interval: "daily" | ||
groups: | ||
# Group updates from github.com/aws/aws-sdk-go-v2 dependencies | ||
aws-sdk-go-v2: | ||
patterns: | ||
- "github.com/aws/aws-sdk-go-v2/*" | ||
|
||
# Dependencies listed in .github/workflows/*.yml | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
# Base image in Dockerfile | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Fail third party dependency usage if not covered by the curated set of pre-approved licenses. | ||
# | ||
# List was generated from guidance set forth by Amazon open source usage policies. | ||
allow-licenses: | ||
- 'Apache-2.0' | ||
- 'BSD-3-Clause' | ||
- 'ISC' | ||
- 'MIT' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
aws_partition_change: | ||
- changed-files: | ||
- any-glob-to-any-file: ['ecr-login/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.*'] | ||
|
||
dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: ['**/go.mod', '**/go.sum'] | ||
|
||
documentation: | ||
- changed-files: | ||
- all-globs-to-all-files: ['**/*.md'] | ||
|
||
github_actions: | ||
- changed-files: | ||
- any-glob-to-any-file: ['.github/**', 'scripts/**'] | ||
|
||
go: | ||
- changed-files: | ||
- any-glob-to-any-file: ['**/*.go'] | ||
|
||
testing: | ||
- changed-files: | ||
- any-glob-to-any-file: ['integration/**', '**/*_test.go'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Check Links | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 3" # Every Wednesday at 00:00 UTC | ||
pull_request: | ||
paths: | ||
- ".github/workflows/check-links.yml" | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-22.04 | ||
if: github.repository == 'awslabs/amazon-ecr-credential-helper' | ||
name: lychee | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: lycheeverse/[email protected] | ||
with: | ||
fail: true | ||
args: --exclude-path ecr-login/vendor --timeout 30 --no-progress './**/*.md' | ||
format: markdown | ||
jobSummary: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "New Pull Requests" | ||
|
||
on: | ||
# It is safe to use pull_request_target here because we are not checking out | ||
# code from the pull request branch. | ||
# | ||
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | ||
pull_request_target: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
label: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-22.04 | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
# Use label configuration from main instead of from the pull request branch | ||
# to mitigate running untrusted workflows with write permissions. | ||
- uses: actions/labeler@v5 | ||
with: | ||
configuration-path: '.github/new-pull-request-labels.yml' | ||
sync-labels: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Review dependencies | ||
|
||
on: | ||
pull_request: | ||
branches: ['main', 'release/**'] | ||
paths: | ||
- 'ecr-login/go.*' | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
# Write permissions needed to comment review results on PR. | ||
# Pwn request risk mitigated by using pull_request workflow trigger | ||
# and external contributor workflow runs require maintainer approval. | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/dependency-review-action@v4 | ||
with: | ||
config-file: './.github/dependency-review-config.yml' | ||
comment-summary-in-pr: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You | ||
# may not use this file except in compliance with the License. A copy of | ||
# the License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
# ANY KIND, either express or implied. See the License for the specific | ||
# language governing permissions and limitations under the License. | ||
|
||
FROM golang:1.15 | ||
FROM public.ecr.aws/docker/library/golang:1.23-alpine | ||
|
||
WORKDIR /go/src/github.com/awslabs/amazon-ecr-credential-helper | ||
|
||
COPY . . | ||
COPY ./scripts/container_init.sh /setup/container_init.sh | ||
|
||
RUN /setup/container_init.sh | ||
|
||
CMD make |
Oops, something went wrong.