Skip to content

Commit 8b7ca98

Browse files
authored
Merge pull request #59 from cisagov/lineage/skeleton
⚠️ CONFLICT! Lineage pull request for: skeleton
2 parents 1cd1959 + a2011e4 commit 8b7ca98

30 files changed

+1436
-644
lines changed

.github/CODEOWNERS

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,22 @@
33
# These owners will be the default owners for everything in the
44
# repo. Unless a later match takes precedence, these owners will be
55
# requested for review when someone opens a pull request.
6-
* @dav3r @felddy @jasonodoom @jsf9k @mcdonnnj
6+
* @dav3r @felddy @jsf9k @mcdonnnj
77

88
# These folks own any files in the .github directory at the root of
99
# the repository and any of its subdirectories.
10-
/.github/ @dav3r @felddy @jasonodoom @jsf9k @mcdonnnj
10+
/.github/ @dav3r @felddy @jsf9k @mcdonnnj
11+
12+
# These folks own all linting configuration files.
13+
/.ansible-lint @dav3r @felddy @jsf9k @mcdonnnj
14+
/.bandit.yml @dav3r @felddy @jsf9k @mcdonnnj
15+
/.flake8 @dav3r @felddy @jsf9k @mcdonnnj
16+
/.isort.cfg @dav3r @felddy @jsf9k @mcdonnnj
17+
/.mdl_config.yaml @dav3r @felddy @jsf9k @mcdonnnj
18+
/.pre-commit-config.yaml @dav3r @felddy @jsf9k @mcdonnnj
19+
/.prettierignore @dav3r @felddy @jsf9k @mcdonnnj
20+
/.yamllint @dav3r @felddy @jsf9k @mcdonnnj
21+
/requirements.txt @dav3r @felddy @jsf9k @mcdonnnj
22+
/requirements-dev.txt @dav3r @felddy @jsf9k @mcdonnnj
23+
/requirements-test.txt @dav3r @felddy @jsf9k @mcdonnnj
24+
/setup-env @dav3r @felddy @jsf9k @mcdonnnj

.github/dependabot.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,26 @@ updates:
1616
# Managed by cisagov/skeleton-generic
1717
- dependency-name: actions/cache
1818
- dependency-name: actions/checkout
19+
- dependency-name: actions/dependency-review-action
1920
- dependency-name: actions/setup-go
2021
- dependency-name: actions/setup-python
21-
- dependency-name: crazy-max/ghaction-dump-context
22+
- dependency-name: cisagov/action-job-preamble
23+
- dependency-name: cisagov/setup-env-github-action
2224
- dependency-name: crazy-max/ghaction-github-labeler
23-
- dependency-name: crazy-max/ghaction-github-status
25+
- dependency-name: github/codeql-action
26+
- dependency-name: hashicorp/setup-packer
2427
- dependency-name: hashicorp/setup-terraform
2528
- dependency-name: mxschmitt/action-tmate
26-
- dependency-name: step-security/harden-runner
2729
# Managed by cisagov/skeleton-docker
2830
- dependency-name: actions/download-artifact
29-
- dependency-name: actions/github-script
3031
- dependency-name: actions/upload-artifact
32+
- dependency-name: aquasecurity/trivy-action
3133
- dependency-name: docker/build-push-action
3234
- dependency-name: docker/login-action
35+
- dependency-name: docker/metadata-action
3336
- dependency-name: docker/setup-buildx-action
3437
- dependency-name: docker/setup-qemu-action
35-
- dependency-name: github/codeql-action
38+
- dependency-name: peter-evans/dockerhub-description
3639
package-ecosystem: github-actions
3740
schedule:
3841
interval: weekly

.github/labels.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,72 +2,72 @@
22
# Rather than breaking up descriptions into multiline strings we disable that
33
# specific rule in yamllint for this file.
44
# yamllint disable rule:line-length
5-
- color: "eb6420"
5+
- color: eb6420
66
description: This issue or pull request is awaiting the outcome of another issue or pull request
77
name: blocked
88
- color: "000000"
99
description: This issue or pull request involves changes to existing functionality
1010
name: breaking change
11-
- color: "d73a4a"
11+
- color: d73a4a
1212
description: This issue or pull request addresses broken functionality
1313
name: bug
14-
- color: "07648d"
14+
- color: 07648d
1515
description: This issue will be advertised on code.gov's Open Tasks page (https://code.gov/open-tasks)
1616
name: code.gov
17-
- color: "0366d6"
17+
- color: 0366d6
1818
description: Pull requests that update a dependency file
1919
name: dependencies
20-
- color: "2497ed"
20+
- color: 2497ed
2121
description: Pull requests that update Docker code
2222
name: docker
23-
- color: "5319e7"
23+
- color: 5319e7
2424
description: This issue or pull request improves or adds to documentation
2525
name: documentation
26-
- color: "cfd3d7"
26+
- color: cfd3d7
2727
description: This issue or pull request already exists or is covered in another issue or pull request
2828
name: duplicate
29-
- color: "b005bc"
29+
- color: b005bc
3030
description: A high-level objective issue encompassing multiple issues instead of a specific unit of work
3131
name: epic
3232
- color: "000000"
3333
description: Pull requests that update GitHub Actions code
3434
name: github-actions
35-
- color: "0e8a16"
35+
- color: 0e8a16
3636
description: This issue or pull request is well-defined and good for newcomers
3737
name: good first issue
38-
- color: "ff7518"
38+
- color: ff7518
3939
description: Pull request that should count toward Hacktoberfest participation
4040
name: hacktoberfest-accepted
41-
- color: "a2eeef"
41+
- color: a2eeef
4242
description: This issue or pull request will add or improve functionality, maintainability, or ease of use
4343
name: improvement
44-
- color: "fef2c0"
44+
- color: fef2c0
4545
description: This issue or pull request is not applicable, incorrect, or obsolete
4646
name: invalid
47-
- color: "ce099a"
47+
- color: ce099a
4848
description: This pull request is ready to merge during the next Lineage Kraken release
4949
name: kraken 🐙
50-
- color: "a4fc5d"
50+
- color: a4fc5d
5151
description: This issue or pull request requires further information
5252
name: need info
53-
- color: "fcdb45"
53+
- color: fcdb45
5454
description: This pull request is awaiting an action or decision to move forward
5555
name: on hold
56-
- color: "ef476c"
56+
- color: ef476c
5757
description: This issue is a request for information or needs discussion
5858
name: question
59-
- color: "d73a4a"
59+
- color: d73a4a
6060
description: This issue or pull request addresses a security issue
6161
name: security
62-
- color: "00008b"
62+
- color: 00008b
6363
description: This issue or pull request adds or otherwise modifies test code
6464
name: test
65-
- color: "1d76db"
65+
- color: 1d76db
6666
description: This issue or pull request pulls in upstream updates
6767
name: upstream update
68-
- color: "d4c5f9"
68+
- color: d4c5f9
6969
description: This issue or pull request increments the version number
7070
name: version bump
71-
- color: "ffffff"
71+
- color: ffffff
7272
description: This issue will not be incorporated
7373
name: wontfix

.github/lineage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
lineage:
33
skeleton:
44
remote-url: https://github.com/cisagov/skeleton-docker.git
5-
version: '1'
5+
version: "1"
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
name: Provide repository metadata
3+
4+
on: # yamllint disable-line rule:truthy
5+
workflow_call:
6+
outputs:
7+
image-name:
8+
description: The name of the Docker image.
9+
value: ${{ jobs.output-repo-metadata.outputs.image-name }}
10+
image-platforms:
11+
description: The supported platforms for the Docker image.
12+
value: ${{ jobs.output-repo-metadata.outputs.image-platforms }}
13+
14+
jobs:
15+
output-repo-metadata:
16+
name: Generate outputs for repository metadata
17+
outputs:
18+
image-name: ${{ steps.set-outputs.outputs.image-name }}
19+
image-platforms: ${{ steps.set-outputs.outputs.image-platforms }}
20+
permissions: {}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Set outputs for repository metadata
24+
id: set-outputs
25+
run: |
26+
# Standard Python Libraries
27+
import json
28+
import os
29+
import sys
30+
from typing import Any, TypedDict
31+
32+
33+
class GhaOutput(TypedDict):
34+
35+
description: str
36+
name: str
37+
value: Any
38+
39+
40+
# Every output in this list must be configured as an output for the workflow.
41+
gha_outputs: list[GhaOutput] = [
42+
{
43+
"description": "The name of the Docker image.",
44+
"name": "image-name",
45+
"value": "cisagov/postfix",
46+
},
47+
{
48+
"description": "The supported platforms for the Docker image.",
49+
"name": "image-platforms",
50+
"value": [
51+
# The platforms disabled below are not available for the current
52+
# base image (debian:bullseye-slim). Please see #60 for more
53+
# information.
54+
"linux/386",
55+
"linux/amd64",
56+
# "linux/arm/v6",
57+
"linux/arm/v7",
58+
"linux/arm64",
59+
# "linux/ppc64le",
60+
# "linux/riscv64",
61+
# "linux/s390x",
62+
],
63+
},
64+
]
65+
66+
if os.getenv("GITHUB_OUTPUT") is None:
67+
print(
68+
"GITHUB_OUTPUT is not set. "
69+
"This script is intended to be run in a GitHub Actions environment."
70+
)
71+
sys.exit(1)
72+
73+
with open(os.environ["GITHUB_OUTPUT"], "a") as gh_output:
74+
for output in gha_outputs:
75+
if any(isinstance(output["value"], t) for t in [list, dict]):
76+
output["value"] = json.dumps(output["value"])
77+
gh_output.write(f"{output['name']}={output['value']}\n")
78+
shell: python3 {0}

0 commit comments

Comments
 (0)