-
Notifications
You must be signed in to change notification settings - Fork 10
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
4 changed files
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2023 Chainguard, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: ActionLint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
|
||
action-lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
|
||
- id: get_yamls | ||
run: | | ||
Check failure on line 21 in .github/workflows/actionlint.yaml GitHub Actions / actionlint[actionlint] .github/workflows/actionlint.yaml#L21
Raw output
Check failure on line 21 in .github/workflows/actionlint.yaml GitHub Actions / actionlint[actionlint] .github/workflows/actionlint.yaml#L21
Raw output
Check failure on line 21 in .github/workflows/actionlint.yaml GitHub Actions / actionlint[actionlint] .github/workflows/actionlint.yaml#L21
Raw output
|
||
yamls=$(find . -name "*.yaml" -iname '.chainguard/source.yaml') | ||
echo "files="${yamls}"" >> $GITHUB_OUTPUT | ||
- uses: reviewdog/action-actionlint@v1 | ||
with: | ||
actionlint_flags: ${{ steps.get_yamls.outputs.files }} |
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,33 @@ | ||
# Copyright 2023 Chainguard, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
|
||
- name: Run Digestabot | ||
uses: ./ | ||
with: | ||
create-pr: false | ||
|
||
- name: Check changes | ||
run: | | ||
if [[ $(git diff --stat) == '' ]]; then | ||
echo 'should exist changes' | ||
exit 1 | ||
else | ||
exit 0 | ||
fi | ||
shell: bash |
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,4 @@ | ||
# Copyright 2023 Chainguard, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM cgr.dev/chainguard/static@sha256:a8aeacbaf0a1176ab5dbcf9b73a517665d8db5e1495ba97d64c73b3821deb0d8 |
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,19 @@ | ||
# Copyright 2023 Chainguard, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
namespace: test | ||
name: test | ||
spec: | ||
backoffLimit: 25 | ||
template: | ||
metadata: | ||
annotations: | ||
spec: | ||
restartPolicy: Never | ||
- name: cosign | ||
image: cgr.dev/chainguard/static@sha256:a8aeacbaf0a1176ab5dbcf9b73a517665d8db5e1495ba97d64c73b3821deb0d8 | ||
command: ["/bin/sh", "-c"] | ||
|