Skip to content

Commit 1762d7c

Browse files
Merge branch 'main' into docs/fix-outerloop-code-example
2 parents 9060a86 + 8ea4803 commit 1762d7c

File tree

6 files changed

+146
-30
lines changed

6 files changed

+146
-30
lines changed

.clomonitor.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CLOMonitor metadata file
2+
# This file must be located at the root of the repository
3+
4+
# Checks exemptions
5+
exemptions:
6+
- check: license_scanning # Check identifier (see https://github.com/cncf/clomonitor/blob/main/docs/checks.md#exemptions)
7+
reason: "There are currently no plans moving forward to implement FOSSA or Snyk for scanning purposes." # Justification of this exemption (mandatory, it will be displayed on the UI)
8+
- check: artifacthub_badge
9+
reason: "This repository has no items that should be added to Artifact Hub."

.github/workflows/scorecard.yaml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Scorecard supply-chain security
2+
on:
3+
# For Branch-Protection check. Only the default branch is supported. See
4+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5+
branch_protection_rule:
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
# Declare default permissions as read only.
10+
permissions: read-all
11+
12+
jobs:
13+
analysis:
14+
name: Scorecard analysis
15+
runs-on: ubuntu-latest
16+
permissions:
17+
# Needed to upload the results to code-scanning dashboard.
18+
security-events: write
19+
# Needed to publish results and get a badge (see publish_results below).
20+
id-token: write
21+
22+
steps:
23+
- name: "Checkout code"
24+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
25+
with:
26+
persist-credentials: false
27+
28+
- name: "Run analysis"
29+
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
34+
# - you want to enable the Branch-Protection check on a *public* repository, or
35+
# - you are installing Scorecard on a *private* repository
36+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
37+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
38+
39+
# Public repositories:
40+
# - Publish results to OpenSSF REST API for easy access by consumers
41+
# - Allows the repository to include the Scorecard badge.
42+
# - See https://github.com/ossf/scorecard-action#publishing-results.
43+
publish_results: true
44+
45+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
46+
# format to the repository Actions tab.
47+
- name: "Upload artifact"
48+
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
49+
with:
50+
name: SARIF file
51+
path: results.sarif
52+
retention-days: 5
53+
54+
# Upload the results to GitHub's code scanning dashboard.
55+
- name: "Upload to code-scanning"
56+
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
57+
with:
58+
sarif_file: results.sarif

CONTRIBUTING.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
Contributions are welcome!
3+
Thank you for your interest in contributing to the Devfile Web! We welcome your additions to this project.
44

55
## Code of Conduct
66

@@ -22,24 +22,30 @@ Signed-off-by: Firstname Lastname <[email protected]>
2222

2323
Once you set your user.name and user.email in your git config, you can sign your commit automatically with `git commit -s`.
2424

25-
## Getting Started
25+
## How to Contribute:
2626

2727
### Issues
2828

29-
- Issues are tracked via the the [devfile/api](https://github.com/devfile/api) repo. Open or search for [issues](https://github.com/devfile/api/issues) with the label `area/landing-page`.
29+
- If you spot a problem with the **landing page**, [search if an issue already exists](https://github.com/devfile/api/issues?q=is%3Aissue+is%3Aopen+label%3Aarea%2Flanding-page).
3030

31-
- If a related issue doesn't exist, you can open a new issue using a relevant [issue form](https://github.com/devfile/api/issues/new/choose). You can tag issues with `/area landing-page`.
31+
- If you spot a problem with the **registry viewer**, [search if an issue already exists](https://github.com/devfile/api/issues?q=is%3Aissue+is%3Aopen+label%3Aarea%2Fregistry-viewer).
3232

33-
### Pull Requests
33+
If a related issue doesn't exist, you can open a new issue using the [issue form](https://github.com/devfile/api/issues/new/choose). You can tag `landing page` related issues with the `/area landing-page` and `registry viewer` with the `area/registry-viewer` text in your issue.
34+
35+
### Submitting Pull Request
3436

3537
When you think the code is ready for review, create a pull request and link the issue associated with it.
3638

37-
Owners of the repository will watch out for and review new PRs.
39+
Owners of the repository will watch out for new PRs and provide reviews to them.
3840

3941
If comments have been given in a review, they have to be addressed before merging.
4042

41-
After addressing review comments, dont forget to add a comment in the PR afterward, so everyone gets notified by Github and knows to re-review.
43+
After addressing review comments, don't forget to add a comment in the PR with the reviewer mentioned afterward, so they get notified by Github to provide a re-review.
4244

4345
## Troubleshooting
4446

45-
- There is a known issue with Apple Silicon (arm64) architectures that may cause the `build_viewer.sh` script to fail. If this issue occurs first run `export PLATFORM_EV=linux/arm64`.
47+
- There is a known issue with Apple Silicon (arm64) architectures that may cause the `build_viewer.sh` script to fail. If this issue occurs first run `export PLATFORM_EV=linux/arm64`.
48+
49+
# Contact us
50+
51+
If you have any questions, please visit us the `#devfile` channel under the [Kubernetes Slack](https://slack.k8s.io) workspace.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# devfile-web
2+
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8255/badge)](https://www.bestpractices.dev/projects/8255)
3+
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/devfile/devfile-web/badge)](https://securityscorecards.dev/viewer/?uri=github.com/devfile/devfile-web)
24

35
Monorepo for web related devfile projects
46

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"react-markdown": "^8.0.3",
4747
"regenerator-runtime": "0.13.11",
4848
"remark-gfm": "^3.0.1",
49-
"sharp": "^0.31.3",
49+
"sharp": "^0.32.6",
5050
"tslib": "^2.0.0",
5151
"use-query-params": "^2.1.2",
5252
"usehooks-ts": "^2.6.0"

yarn.lock

+62-21
Original file line numberDiff line numberDiff line change
@@ -4957,6 +4957,11 @@ axobject-query@^3.1.1:
49574957
dependencies:
49584958
deep-equal "^2.0.5"
49594959

4960+
b4a@^1.6.4:
4961+
version "1.6.4"
4962+
resolved "https://registry.yarnpkg.com/b4a/-/b4a-1.6.4.tgz#ef1c1422cae5ce6535ec191baeed7567443f36c9"
4963+
integrity sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==
4964+
49604965
babel-jest@^28.1.1:
49614966
version "28.1.3"
49624967
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-28.1.3.tgz#c1187258197c099072156a0a121c11ee1e3917d5"
@@ -6238,10 +6243,10 @@ [email protected]:
62386243
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
62396244
integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==
62406245

6241-
detect-libc@^2.0.0, detect-libc@^2.0.1:
6242-
version "2.0.1"
6243-
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.1.tgz#e1897aa88fa6ad197862937fbc0441ef352ee0cd"
6244-
integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==
6246+
detect-libc@^2.0.0, detect-libc@^2.0.2:
6247+
version "2.0.2"
6248+
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.2.tgz#8ccf2ba9315350e1241b88d0ac3b0e1fbd99605d"
6249+
integrity sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==
62456250

62466251
detect-newline@^3.0.0:
62476252
version "3.1.0"
@@ -7150,6 +7155,11 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
71507155
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
71517156
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
71527157

7158+
fast-fifo@^1.1.0, fast-fifo@^1.2.0:
7159+
version "1.3.2"
7160+
resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c"
7161+
integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==
7162+
71537163
71547164
version "3.2.7"
71557165
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1"
@@ -7343,9 +7353,9 @@ focus-visible@^5.2.0:
73437353
integrity sha512-Rwix9pBtC1Nuy5wysTmKy+UjbDJpIfg8eHjw0rjZ1mX4GNLz1Bmd16uDpI3Gk1i70Fgcs8Csg2lPm8HULFg9DQ==
73447354

73457355
follow-redirects@^1.0.0, follow-redirects@^1.14.0, follow-redirects@^1.15.0:
7346-
version "1.15.2"
7347-
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13"
7348-
integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==
7356+
version "1.15.4"
7357+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf"
7358+
integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==
73497359

73507360
for-each@^0.3.3:
73517361
version "0.3.3"
@@ -10402,10 +10412,10 @@ node-addon-api@^3.2.1:
1040210412
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161"
1040310413
integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==
1040410414

10405-
node-addon-api@^5.0.0:
10406-
version "5.1.0"
10407-
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-5.1.0.tgz#49da1ca055e109a23d537e9de43c09cca21eb762"
10408-
integrity sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==
10415+
node-addon-api@^6.1.0:
10416+
version "6.1.0"
10417+
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-6.1.0.tgz#ac8470034e58e67d0c6f1204a18ae6995d9c0d76"
10418+
integrity sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==
1040910419

1041010420
1041110421
version "2.6.7"
@@ -11456,6 +11466,11 @@ queue-microtask@^1.2.2:
1145611466
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
1145711467
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
1145811468

11469+
queue-tick@^1.0.1:
11470+
version "1.0.1"
11471+
resolved "https://registry.yarnpkg.com/queue-tick/-/queue-tick-1.0.1.tgz#f6f07ac82c1fd60f82e098b417a80e52f1f4c142"
11472+
integrity sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==
11473+
1145911474
quick-lru@^5.1.1:
1146011475
version "5.1.1"
1146111476
resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932"
@@ -12099,7 +12114,7 @@ [email protected]:
1209912114
dependencies:
1210012115
lru-cache "^6.0.0"
1210112116

12102-
[email protected], semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8:
12117+
[email protected], semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.4:
1210312118
version "7.5.4"
1210412119
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
1210512120
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
@@ -12182,18 +12197,18 @@ shallow-clone@^3.0.0:
1218212197
dependencies:
1218312198
kind-of "^6.0.2"
1218412199

12185-
sharp@^0.31.3:
12186-
version "0.31.3"
12187-
resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.31.3.tgz#60227edc5c2be90e7378a210466c99aefcf32688"
12188-
integrity sha512-XcR4+FCLBFKw1bdB+GEhnUNXNXvnt0tDo4WsBsraKymuo/IAuPuCBVAL2wIkUw2r/dwFW5Q5+g66Kwl2dgDFVg==
12200+
sharp@^0.32.6:
12201+
version "0.32.6"
12202+
resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.32.6.tgz#6ad30c0b7cd910df65d5f355f774aa4fce45732a"
12203+
integrity sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==
1218912204
dependencies:
1219012205
color "^4.2.3"
12191-
detect-libc "^2.0.1"
12192-
node-addon-api "^5.0.0"
12206+
detect-libc "^2.0.2"
12207+
node-addon-api "^6.1.0"
1219312208
prebuild-install "^7.1.1"
12194-
semver "^7.3.8"
12209+
semver "^7.5.4"
1219512210
simple-get "^4.0.1"
12196-
tar-fs "^2.1.1"
12211+
tar-fs "^3.0.4"
1219712212
tunnel-agent "^0.6.0"
1219812213

1219912214
shebang-command@^1.2.0:
@@ -12494,6 +12509,14 @@ stop-iteration-iterator@^1.0.0:
1249412509
dependencies:
1249512510
internal-slot "^1.0.4"
1249612511

12512+
streamx@^2.15.0:
12513+
version "2.15.5"
12514+
resolved "https://registry.yarnpkg.com/streamx/-/streamx-2.15.5.tgz#87bcef4dc7f0b883f9359671203344a4e004c7f1"
12515+
integrity sha512-9thPGMkKC2GctCzyCUjME3yR03x2xNo0GPKGkRw2UMYN+gqWa9uqpyNWhmsNCutU5zHmkUum0LsCRQTXUgUCAg==
12516+
dependencies:
12517+
fast-fifo "^1.1.0"
12518+
queue-tick "^1.0.1"
12519+
1249712520
string-hash@^1.1.1:
1249812521
version "1.1.3"
1249912522
resolved "https://registry.yarnpkg.com/string-hash/-/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b"
@@ -12782,7 +12805,7 @@ tapable@^2.1.1, tapable@^2.2.0, tapable@^2.2.1:
1278212805
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
1278312806
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
1278412807

12785-
tar-fs@^2.0.0, tar-fs@^2.1.1:
12808+
tar-fs@^2.0.0:
1278612809
version "2.1.1"
1278712810
resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-2.1.1.tgz#489a15ab85f1f0befabb370b7de4f9eb5cbe8784"
1278812811
integrity sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==
@@ -12792,6 +12815,15 @@ tar-fs@^2.0.0, tar-fs@^2.1.1:
1279212815
pump "^3.0.0"
1279312816
tar-stream "^2.1.4"
1279412817

12818+
tar-fs@^3.0.4:
12819+
version "3.0.4"
12820+
resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-3.0.4.tgz#a21dc60a2d5d9f55e0089ccd78124f1d3771dbbf"
12821+
integrity sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==
12822+
dependencies:
12823+
mkdirp-classic "^0.5.2"
12824+
pump "^3.0.0"
12825+
tar-stream "^3.1.5"
12826+
1279512827
tar-stream@^2.1.4, tar-stream@~2.2.0:
1279612828
version "2.2.0"
1279712829
resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287"
@@ -12803,6 +12835,15 @@ tar-stream@^2.1.4, tar-stream@~2.2.0:
1280312835
inherits "^2.0.3"
1280412836
readable-stream "^3.1.1"
1280512837

12838+
tar-stream@^3.1.5:
12839+
version "3.1.6"
12840+
resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-3.1.6.tgz#6520607b55a06f4a2e2e04db360ba7d338cc5bab"
12841+
integrity sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==
12842+
dependencies:
12843+
b4a "^1.6.4"
12844+
fast-fifo "^1.2.0"
12845+
streamx "^2.15.0"
12846+
1280612847
1280712848
version "6.1.11"
1280812849
resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621"

0 commit comments

Comments
 (0)