-
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.
Merge branch 'main' into dependabot/github_actions/code-check-actions…
…/luacheck/lunarmodules/luacheck-1.1.1
- Loading branch information
Showing
27 changed files
with
721 additions
and
148 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
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,88 @@ | ||
name: Docker Sign Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
test-sign-docker-image: | ||
|
||
permissions: | ||
contents: read | ||
packages: write # needed to upload to packages to registry | ||
id-token: write # needed for signing the images with GitHub OIDC Token | ||
|
||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | ||
name: Test Sign Docker Image | ||
runs-on: ubuntu-22.04 | ||
env: | ||
PRERELEASE_IMAGE: kongcloud/security-test-repo-pub:ubuntu_23_10 #particular reason for the choice of image: test multi arch image | ||
TAGS: kongcloud/security-test-repo-pub:ubuntu_23_10,kongcloud/security-test-repo:ubuntu_23_10 | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Install regctl | ||
uses: regclient/actions/regctl-installer@main | ||
|
||
- name: Parse Image Manifest Digest | ||
id: image_manifest_metadata | ||
run: | | ||
manifest_list_exists="$( | ||
if regctl manifest get "${PRERELEASE_IMAGE}" --format raw-body --require-list -v panic &> /dev/null; then | ||
echo true | ||
else | ||
echo false | ||
fi | ||
)" | ||
echo "manifest_list_exists=$manifest_list_exists" | ||
echo "manifest_list_exists=$manifest_list_exists" >> $GITHUB_OUTPUT | ||
manifest_sha="$(regctl image digest "${PRERELEASE_IMAGE}")" | ||
echo "manifest_sha=$manifest_sha" | ||
echo "manifest_sha=$manifest_sha" >> $GITHUB_OUTPUT | ||
- name: Sign Image digest | ||
id: sign_image | ||
if: steps.image_manifest_metadata.outputs.manifest_sha != '' | ||
uses: ./security-actions/sign-docker-image | ||
with: | ||
cosign_output_prefix: ubuntu-23-10 | ||
signature_registry: kongcloud/security-test-repo-sig-pub | ||
tags: ${{ env.TAGS }} | ||
image_digest: ${{ steps.image_manifest_metadata.outputs.manifest_sha }} | ||
local_save_cosign_assets: true | ||
registry_username: ${{ secrets.DOCKERHUB_PUSH_USERNAME }} | ||
registry_password: ${{ secrets.DOCKERHUB_PUSH_TOKEN }} | ||
|
||
- name: Push Images | ||
env: | ||
RELEASE_TAG: kongcloud/security-test-repo:v1 | ||
run: | | ||
docker pull ${PRERELEASE_IMAGE} | ||
for tag in $RELEASE_TAG; do | ||
regctl -v debug image copy ${PRERELEASE_IMAGE} $tag | ||
done | ||
- name: Sign Image digest | ||
id: sign_image_v1 | ||
if: steps.image_manifest_metadata.outputs.manifest_sha != '' | ||
uses: ./security-actions/sign-docker-image | ||
env: | ||
RELEASE_TAG: kongcloud/security-test-repo:v1 | ||
with: | ||
cosign_output_prefix: v1 # Optional | ||
local_save_cosign_assets: true # Optional | ||
signature_registry: kongcloud/security-test-repo-sig-pub | ||
tags: ${{ env.RELEASE_TAG }} | ||
image_digest: ${{ steps.image_manifest_metadata.outputs.manifest_sha }} | ||
registry_username: ${{ secrets.DOCKERHUB_PUSH_USERNAME }} | ||
registry_password: ${{ secrets.DOCKERHUB_PUSH_TOKEN }} |
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,37 @@ | ||
name: Rust Lint Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
test-rust-lint: | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
checks: write | ||
pull-requests: write | ||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
env: | ||
TEST_REPOSITORY: "${{github.repository_owner}}/atc-router" | ||
runs-on: ubuntu-latest | ||
name: Rust Code Linting checks | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: ${{env.TEST_REPOSITORY}} | ||
path: ${{env.TEST_REPOSITORY}} | ||
- uses: ./code-check-actions/rust-lint | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
manifest_dir: ${{ github.workspace }}/${{env.TEST_REPOSITORY}} |
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
Validating CODEOWNERS rules …
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,3 +1,5 @@ | ||
* @Kong/team-shared-actions-reviewers | ||
|
||
security-actions/ @Kong/team-security-engineering | ||
security-actions/ @Kong/team-security-engineering | ||
pr-previews/ @adamdehaven @ValeryG @Drew-Kimberly | ||
code-check-actions/ @Kong/team-security-engineering |
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,2 +1,16 @@ | ||
# public-shared-actions | ||
Shared actions available to both public and private repositories | ||
|
||
## Usage | ||
|
||
```yaml | ||
- uses: Kong/public-shared-actions/<action-name>@<tag> | ||
``` | ||
For example: | ||
```yaml | ||
- uses: Kong/public-shared-actions/code-build-actions/build-js-sdk@v1.6.0 | ||
``` | ||
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
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
Oops, something went wrong.