-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:bcgov/sso-keycloak into k6config
- Loading branch information
Showing
183 changed files
with
12,461 additions
and
2,058 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 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,65 @@ | ||
name: Create and publish Keycloak Docker image - Dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'dev' | ||
|
||
env: | ||
GITHUB_REGISTRY: ghcr.io | ||
REDHAT_REGISTRY: registry.redhat.io | ||
IMAGE_NAME: bcgov/sso | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to the GitHub Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.GITHUB_REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Log in to the REDHAT Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REDHAT_REGISTRY }} | ||
username: ${{ secrets.REDHAT_USERNAME }} | ||
password: ${{ secrets.REDHAT_PASSWORD }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: docker/keycloak | ||
push: true | ||
tags: ${{ env.GITHUB_REGISTRY }}/${{env.IMAGE_NAME}}:dev | ||
file: docker/keycloak/Dockerfile-${{ startsWith(github.ref, 'refs/tags/7.4-37') && '7.4-37' || '7.6' }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
# Temp fix | ||
# https://github.com/docker/build-push-action/issues/252 | ||
# https://github.com/moby/buildkit/issues/1896 | ||
- name: Move cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
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,43 @@ | ||
name: Run script to fetch SAML attributes | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
run-siteminder-script: | ||
name: Fetch Attributes from SAML Response | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Generate env file | ||
run: | | ||
cd ${{ github.workspace }}/cy-siteminder-tests | ||
echo "${{ secrets.SITEMINDER_TESTS_ENV }}" | base64 --decode > .env | ||
- name: Set up docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Cache docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-test-cache | ||
key: ${{ runner.os }}-buildx-test-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-buildx-test- | ||
- name: Build docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: cy-siteminder-tests/ | ||
push: false | ||
load: true | ||
tags: siteminder-tests | ||
cache-from: type=local,src=/tmp/.buildx-test-cache | ||
cache-to: type=local,dest=/tmp/.buildx-test-cache-new | ||
- name: Move cache | ||
run: | | ||
rm -rf /tmp/.buildx-test-cache | ||
mv /tmp/.buildx-test-cache-new /tmp/.buildx-test-cache | ||
- name: Run siteminder tests | ||
run: | | ||
cd ${{ github.workspace }}/cy-siteminder-tests | ||
docker run --rm -v $(pwd)/results:/e2e/results siteminder-tests cy:run:attrs |
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 |
---|---|---|
|
@@ -50,3 +50,5 @@ docker/keycloak/extensions/services/target | |
screen_shots | ||
saml_trace | ||
results | ||
screenshots | ||
mds.json |
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,5 +1,5 @@ | ||
nodejs 14.14.0 | ||
python 3.8.6 | ||
nodejs 16.14.0 | ||
python 3.11.0 | ||
kubectl 1.24.2 | ||
oc 4.7.5 | ||
helm 3.8.2 | ||
|
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,3 @@ | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence. | ||
* @junminahn @NithinKuruba @thegentlemanphysicist @arcshiftsolutions | ||
* @NithinKuruba @thegentlemanphysicist @arcshiftsolutions |
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,10 @@ | ||
name: compliance | ||
description: | | ||
This repository does not contain any production application codebase. When this changes we will update this file. | ||
spec: | ||
- name: PIA | ||
status: not-required | ||
last-updated: '2022-10-31' | ||
- name: STRA | ||
status: not-required | ||
last-updated: '2022-10-31' |
File renamed without changes.
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 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["cypress", "chai-friendly"], | ||
"extends": ["plugin:cypress/recommended"], | ||
|
||
"rules": { | ||
"cypress/no-assigning-return-values": "error", | ||
"cypress/no-unnecessary-waiting": "error", | ||
"cypress/assertion-before-screenshot": "warn", | ||
"cypress/no-force": "warn", | ||
"cypress/no-async-tests": "error", | ||
"cypress/no-pause": "error", | ||
"no-unused-expressions": 0, | ||
"chai-friendly/no-unused-expressions": 2 | ||
}, | ||
"env": { | ||
"cypress/globals": true | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 90 | ||
} |
File renamed without changes.
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 @@ | ||
FROM cypress/base:16.18.0 | ||
|
||
WORKDIR /e2e | ||
|
||
COPY *.json /e2e/ | ||
|
||
ENV CI=1 | ||
|
||
RUN npm install | ||
|
||
COPY cypress.config.ts /e2e/ | ||
|
||
COPY .env /e2e/ | ||
|
||
ADD cypress /e2e/cypress | ||
|
||
ENTRYPOINT ["npm", "run"] | ||
|
||
CMD ["cy:run"] |
Oops, something went wrong.