mirror of
https://github.com/actions/container-action.git
synced 2025-07-30 09:37:41 +00:00
Update workflows and configs from template
This commit is contained in:
parent
717ee01a40
commit
6f4f96e326
6
.github/linters/.checkov.yaml
vendored
6
.github/linters/.checkov.yaml
vendored
@ -1,6 +0,0 @@
|
|||||||
quiet: true
|
|
||||||
skip-check:
|
|
||||||
# Ensure that HEALTHCHECK instructions have been added to container images
|
|
||||||
- CKV_DOCKER_2
|
|
||||||
# Ensure that a user for the container has been created
|
|
||||||
- CKV_DOCKER_3
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -2,6 +2,8 @@ name: Continuous Integration
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
8
.github/workflows/linter.yml
vendored
8
.github/workflows/linter.yml
vendored
@ -1,7 +1,14 @@
|
|||||||
|
# This workflow will lint the entire codebase using the
|
||||||
|
# `super-linter/super-linter` action.
|
||||||
|
#
|
||||||
|
# For more information, see the super-linter repository:
|
||||||
|
# https://github.com/super-linter/super-linter
|
||||||
name: Lint Codebase
|
name: Lint Codebase
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@ -29,4 +36,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DEFAULT_BRANCH: main
|
DEFAULT_BRANCH: main
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
LINTER_RULES_PATH: ${{ github.workspace }}
|
||||||
VALIDATE_ALL_CODEBASE: true
|
VALIDATE_ALL_CODEBASE: true
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
|
# See: https://github.com/DavidAnson/markdownlint
|
||||||
|
|
||||||
# Unordered list style
|
# Unordered list style
|
||||||
MD004:
|
MD004:
|
||||||
style: dash
|
style: dash
|
||||||
|
|
||||||
|
# Disable line length for tables
|
||||||
|
MD013:
|
||||||
|
tables: false
|
||||||
|
|
||||||
# Ordered list item prefix
|
# Ordered list item prefix
|
||||||
MD029:
|
MD029:
|
||||||
style: one
|
style: one
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"printWidth": 80,
|
|
||||||
"tabWidth": 2,
|
|
||||||
"useTabs": false,
|
|
||||||
"semi": false,
|
|
||||||
"singleQuote": true,
|
|
||||||
"quoteProps": "as-needed",
|
|
||||||
"jsxSingleQuote": false,
|
|
||||||
"trailingComma": "none",
|
|
||||||
"bracketSpacing": true,
|
|
||||||
"bracketSameLine": true,
|
|
||||||
"arrowParens": "avoid",
|
|
||||||
"proseWrap": "always",
|
|
||||||
"htmlWhitespaceSensitivity": "css",
|
|
||||||
"endOfLine": "lf"
|
|
||||||
}
|
|
16
.prettierrc.yml
Normal file
16
.prettierrc.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# See: https://prettier.io/docs/en/configuration
|
||||||
|
|
||||||
|
printWidth: 80
|
||||||
|
tabWidth: 2
|
||||||
|
useTabs: false
|
||||||
|
semi: false
|
||||||
|
singleQuote: true
|
||||||
|
quoteProps: as-needed
|
||||||
|
jsxSingleQuote: false
|
||||||
|
trailingComma: none
|
||||||
|
bracketSpacing: true
|
||||||
|
bracketSameLine: true
|
||||||
|
arrowParens: always
|
||||||
|
proseWrap: always
|
||||||
|
htmlWhitespaceSensitivity: css
|
||||||
|
endOfLine: lf
|
@ -1,3 +1,5 @@
|
|||||||
|
# See: https://yamllint.readthedocs.io/en/stable/
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
document-end: disable
|
document-end: disable
|
||||||
document-start:
|
document-start:
|
||||||
@ -8,3 +10,5 @@ rules:
|
|||||||
max: 80
|
max: 80
|
||||||
allow-non-breakable-words: true
|
allow-non-breakable-words: true
|
||||||
allow-non-breakable-inline-mappings: true
|
allow-non-breakable-inline-mappings: true
|
||||||
|
ignore:
|
||||||
|
- .licenses/
|
@ -1,3 +1,7 @@
|
|||||||
# Repository CODEOWNERS
|
############################################################################
|
||||||
|
# Repository CODEOWNERS #
|
||||||
|
# Order is important! The last matching pattern takes the most precedence. #
|
||||||
|
############################################################################
|
||||||
|
|
||||||
|
# Default owners, unless a later match takes precedence.
|
||||||
* @actions/actions-oss-maintainers
|
* @actions/actions-oss-maintainers
|
||||||
|
23
README.md
23
README.md
@ -1,23 +1,16 @@
|
|||||||
# Container Action Template
|
# Create a Container Action
|
||||||
|
|
||||||
[](https://github.com/super-linter/super-linter)
|
[](https://github.com/super-linter/super-linter)
|
||||||
|
[](https://github.com/actions/container-action/actions/workflows/check-dist.yml)
|
||||||

|

|
||||||
|
[](https://github.com/actions/container-action/actions/workflows/codeql-analysis.yml)
|
||||||
|
[](./badges/coverage.svg)
|
||||||
|
|
||||||
Use this template to bootstrap the creation of a container action. :rocket:
|
Use this template to bootstrap the creation of a container action. :rocket:
|
||||||
|
|
||||||
This template includes compilation support, tests, a validation workflow,
|
This template includes compilation support, tests, a validation workflow,
|
||||||
publishing, and versioning guidance.
|
publishing, and versioning guidance.
|
||||||
|
|
||||||
If you are new, there's also a simpler introduction in the
|
|
||||||
[Hello World Docker Action](https://github.com/actions/hello-world-docker-action)
|
|
||||||
repository.
|
|
||||||
|
|
||||||
If you would like to use the
|
|
||||||
[GitHub Actions Toolkit](https://github.com/actions/toolkit) in your container
|
|
||||||
action, see the
|
|
||||||
[Container Toolkit Action](https://github.com/actions/container-toolkit-action)
|
|
||||||
repository.
|
|
||||||
|
|
||||||
## Create Your Own Action
|
## Create Your Own Action
|
||||||
|
|
||||||
To create your own action, you can use this repository as a template! Just
|
To create your own action, you can use this repository as a template! Just
|
||||||
@ -166,7 +159,7 @@ So, what are you waiting for? Go ahead and start customizing your action!
|
|||||||
Your action is now published! :rocket:
|
Your action is now published! :rocket:
|
||||||
|
|
||||||
For information about versioning your action, see
|
For information about versioning your action, see
|
||||||
[Versioning](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)
|
[Versioning](https://github.com/actions/toolkit/blob/main/docs/action-versioning.md)
|
||||||
in the GitHub Actions toolkit.
|
in the GitHub Actions toolkit.
|
||||||
|
|
||||||
## Validate the Action
|
## Validate the Action
|
||||||
@ -179,7 +172,7 @@ action in the same repository.
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Test Local Action
|
- name: Test Local Action
|
||||||
id: test-action
|
id: test-action
|
||||||
@ -199,7 +192,7 @@ For example workflow runs, check out the
|
|||||||
|
|
||||||
After testing, you can create version tag(s) that developers can use to
|
After testing, you can create version tag(s) that developers can use to
|
||||||
reference different stable versions of your action. For more information, see
|
reference different stable versions of your action. For more information, see
|
||||||
[Versioning](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)
|
[Versioning](https://github.com/actions/toolkit/blob/main/docs/action-versioning.md)
|
||||||
in the GitHub Actions toolkit.
|
in the GitHub Actions toolkit.
|
||||||
|
|
||||||
To include the action in a workflow in another repository, you can use the
|
To include the action in a workflow in another repository, you can use the
|
||||||
@ -210,7 +203,7 @@ hash.
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Test Local Action
|
- name: Test Local Action
|
||||||
id: test-action
|
id: test-action
|
||||||
|
17
action.yml
17
action.yml
@ -1,18 +1,23 @@
|
|||||||
name: 'The name of your action here'
|
name: The name of your action here
|
||||||
description: 'Provide a description here'
|
description: Provide a description here
|
||||||
author: 'Your name or organization here'
|
author: Your name or organization here
|
||||||
|
|
||||||
|
# Add your action's branding here. This will appear on the GitHub Marketplace.
|
||||||
|
branding:
|
||||||
|
icon: heart
|
||||||
|
color: red
|
||||||
|
|
||||||
# Define your inputs here.
|
# Define your inputs here.
|
||||||
inputs:
|
inputs:
|
||||||
who-to-greet:
|
who-to-greet:
|
||||||
description: 'Your input description here'
|
description: Your input description here
|
||||||
required: true
|
required: true
|
||||||
default: 'World'
|
default: World
|
||||||
|
|
||||||
# Define your outputs here.
|
# Define your outputs here.
|
||||||
outputs:
|
outputs:
|
||||||
greeting:
|
greeting:
|
||||||
description: 'Your output description here'
|
description: Your output description here
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: docker
|
using: docker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user