forked from coredns/coredns
-
Notifications
You must be signed in to change notification settings - Fork 1
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
256 changed files
with
9,470 additions
and
3,647 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
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 was deleted.
Oops, something went wrong.
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,55 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
commit: | ||
description: "Commit (e.g., 52f0348)" | ||
default: "master" | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.commit }} | ||
- name: Set up info | ||
run: | | ||
set -x -e | ||
VERSION=$(make -f Makefile.release version) | ||
COMMIT=$(git rev-parse --quiet --verify ${{ github.event.inputs.commit }}) | ||
if [[ "$(git tag -l v${VERSION})" == "v${VERSION}" ]]; then | ||
echo "v${VERSION} already released" | ||
exit 1 | ||
fi | ||
echo "commit=${COMMIT}" >> $GITHUB_OUTPUT | ||
echo "version=${VERSION}" >> $GITHUB_OUTPUT | ||
id: info | ||
- name: Build release binary | ||
run: make -f Makefile.release release | ||
- name: Build release binary sha256 | ||
run: (cd release; for asset in `ls -A *tgz`; do sha256sum $asset > $asset.sha256; done) | ||
- name: Remove hidden section | ||
run: sed '/+++/,//d' notes/coredns-${{ steps.info.outputs.version}}.md > release.md | ||
- name: Log release info | ||
run: | | ||
set -x -e | ||
git log -1 | ||
echo ${{ steps.info.outputs.commit }} | ||
echo ${{ steps.info.outputs.version }} | ||
cat release.md | ||
sha256sum release/*.tgz | ||
- name: Draft release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: release.md | ||
name: v${{ steps.info.outputs.version }} | ||
tag_name: v${{ steps.info.outputs.version }} | ||
target_commitish: ${{ steps.info.outputs.commit }} | ||
files: | | ||
release/*.tgz | ||
release/*.tgz.sha256 | ||
draft: true |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
name: Trivy Nightly Scan | ||
on: | ||
schedule: | ||
- cron: '0 2 * * 5' # Run at 2AM UTC on every Friday | ||
|
||
permissions: read-all | ||
jobs: | ||
nightly-scan: | ||
name: Trivy Scan nightly | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# It will test for only the latest version as older version is not maintained | ||
versions: [latest] | ||
permissions: | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@2b6a709cf9c4025c5438138008beaddbb02086f0 # master | ||
with: | ||
image-ref: 'docker.io/coredns/coredns:${{ matrix.versions }}' | ||
severity: 'CRITICAL,HIGH' | ||
format: 'sarif' | ||
output: 'trivy-results.sarif' | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4 | ||
with: | ||
sarif_file: 'trivy-results.sarif' |
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,6 +1,7 @@ | ||
# only add build artifacts concerning coredns - no editor related files | ||
coredns | ||
coredns.exe | ||
Corefile | ||
build/ | ||
release/ | ||
vendor/ |
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,4 +1,9 @@ | ||
# @miekg, [email protected], project lead: 11/11/2022 | ||
# 5 steering committee members | ||
# @chrisohaver, term ends 2024-09-26 | ||
# @johnbelamaric, term ends 2024-09-26 | ||
# @stp-ip, term ends 2024-09-26 | ||
# @superq, term ends 2024-09-26 | ||
# @tantalor93, term ends 2024-09-26 | ||
|
||
* @bradbeam @chrisohaver @dilyevsky @jameshartig @greenpau @isolus @johnbelamaric @miekg @pmoroney @rajansandeep @stp-ip @superq @yongtang @Tantalor93 | ||
|
||
|
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.