-
Notifications
You must be signed in to change notification settings - Fork 65
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
218 changed files
with
5,364 additions
and
16,242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# Any committer can add themselves to any of the path patterns | ||
# and will subsequently get requested as a reviewer for any PRs | ||
# that change matching files. | ||
|
||
/* @cnoe-io/idpbuilder-approvers | ||
/* @cnoe-io/idpbuilder-admin |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: code-scanner | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
types: [opened, ready_for_review, synchronize] | ||
|
||
permissions: | ||
contents: write | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
|
||
jobs: | ||
code-analysis: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: ls -al | ||
- name: Scan current project | ||
id: scan | ||
uses: anchore/scan-action@v3 | ||
with: | ||
fail-build: false | ||
path: "." | ||
|
||
- name: Upload scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
if: always() | ||
with: | ||
sarif_file: ${{ steps.scan.outputs.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
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,66 @@ | ||
name: nightly | ||
on: | ||
# This can be used to automatically publish nightlies at UTC nighttime | ||
schedule: | ||
- cron: '0 7 * * *' # run at 7 AM UTC | ||
# This can be used to allow manually triggering nightlies from the web interface | ||
workflow_dispatch: | ||
|
||
jobs: | ||
nightly: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Generate a token | ||
id: generate-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.CNOE_GH_WORKFLOW_TOKEN_APP_ID }} | ||
private-key: ${{ secrets.CNOE_GH_WORKFLOW_TOKEN_PRIVATE_KEY }} | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
fetch-depth: 0 | ||
|
||
- run: git fetch --force --tags | ||
- | ||
name: 'Push new tag' | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
# A previous release was created using a lightweight tag | ||
# git describe by default includes only annotated tags | ||
# git describe --tags includes lightweight tags as well | ||
DESCRIBE=`git tag -l --sort=-v:refname | grep -v nightly | head -n 1` | ||
MAJOR_VERSION=`echo $DESCRIBE | awk '{split($0,a,"."); print a[1]}'` | ||
MINOR_VERSION=`echo $DESCRIBE | awk '{split($0,a,"."); print a[2]}'` | ||
MINOR_VERSION="$((${MINOR_VERSION} + 1))" | ||
TAG="${MAJOR_VERSION}.${MINOR_VERSION}.0-nightly.$(date +'%Y%m%d')" | ||
git tag -a $TAG -m "$TAG: nightly build" | ||
git push origin $TAG | ||
- name: Find previous nightly | ||
run: | | ||
prev_tag=$(git tag | grep "nightly" | sort -r --version-sort | head -n 2 | tail -n 1) | ||
echo "PREVIOUS_NIGHTLY_TAG=$prev_tag" >> $GITHUB_ENV | ||
git push --delete origin $prev_tag | ||
- name: 'Clean up nightly releases' | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ steps.generate-token.outputs.token }} | ||
script: | | ||
const latestRelease = await github.rest.repos.getReleaseByTag({ | ||
owner: "${{ github.repository_owner }}", | ||
repo: "${{ github.event.repository.name }}", | ||
tag: "${{ env.PREVIOUS_NIGHTLY_TAG }}" | ||
}); | ||
console.log(`Release ${latestRelease}`); | ||
if (latestRelease && latestRelease.data && latestRelease.data.id) { | ||
await github.rest.repos.deleteRelease({ | ||
owner: "${{ github.repository_owner }}", | ||
repo: "${{ github.event.repository.name }}", | ||
release_id: latestRelease.data.id, | ||
}); | ||
console.log(`Release id ${latestRelease.data.id} has been deleted.`); | ||
} else { | ||
console.log("No latest release found or failed to retrieve it."); | ||
} |
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,24 @@ | ||
name: slash-commands | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
slash_command_dispatch: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Generate a token | ||
id: generate-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.CNOE_GH_WORKFLOW_TOKEN_APP_ID }} | ||
private-key: ${{ secrets.CNOE_GH_WORKFLOW_TOKEN_PRIVATE_KEY }} | ||
- name: Slash Command Dispatch | ||
uses: peter-evans/slash-command-dispatch@v4 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
commands: | | ||
e2e | ||
permission: write | ||
issue-type: pull-request |
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.