Skip to content

[Snyk] Fix for 25 vulnerabilities #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 42 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
aa7a5db
Update CODEOWNERS
officialmofabs Feb 9, 2023
d7b2fd0
Update CODEOWNERS
officialmofabs Feb 9, 2023
2ea3f21
Update CODEOWNERS
officialmofabs Feb 9, 2023
9a37189
Update CODEOWNERS
officialmofabs Feb 9, 2023
2b45411
Update _config.yml
officialmofabs Feb 9, 2023
d1369d0
Update base.Dockerfile
officialmofabs Feb 9, 2023
b2c8d30
Update Dockerfile
officialmofabs Feb 9, 2023
77ca97e
Update index.html
officialmofabs Feb 9, 2023
7a00796
Update README.md
projectoperations Feb 9, 2023
ecff394
Update README.md
projectoperations Feb 9, 2023
0039e00
Update README.md
projectoperations Feb 9, 2023
68b40ac
Update collections.html
officialmofabs Feb 9, 2023
25c0b96
Update guides.html
officialmofabs Feb 9, 2023
ca4273e
Update specification-toc.yml
officialmofabs Feb 9, 2023
449652a
Update footer.html
officialmofabs Feb 9, 2023
62cf9cc
Update footer.html
officialmofabs Feb 9, 2023
a66177d
Update README.md
officialmofabs Feb 9, 2023
0213a28
Update README.md
officialmofabs Feb 9, 2023
1ea31d2
Update CODEOWNERS
officialmofabs Feb 9, 2023
bd1ec19
Update CNAME
officialmofabs Feb 9, 2023
564de79
Create jekyll.yml
officialmofabs Feb 9, 2023
cfbcc5e
Update README.md
officialmofabs Feb 9, 2023
b33d0a4
Update CNAME
officialmofabs Feb 9, 2023
7787e9e
Create README.md
projectoperations Feb 9, 2023
8fbbc9f
Delete collections.html
officialmofabs Feb 9, 2023
c5e1dba
Merge branch 'devcontainers:gh-pages' into gh-pages
projectoperations Feb 10, 2023
89eb925
Update README.md
projectoperations Feb 10, 2023
0e21eb1
Create hadolint.yml
officialmofabs Feb 10, 2023
2f0995d
Update issue templates
officialmofabs Feb 10, 2023
5f9f015
Update _config.yml
projectoperations Feb 10, 2023
350102a
Update _config.yml
projectoperations Feb 10, 2023
05d79df
Create dependabot.yml
projectoperations Feb 11, 2023
9754c75
Merge branch 'devcontainers:gh-pages' into gh-pages
officialmofabs Feb 17, 2023
1b099af
Merge branch 'devcontainers:gh-pages' into gh-pages
officialmofabs Feb 19, 2023
d6ced54
Merge branch 'devcontainers:gh-pages' into gh-pages
projectoperations Feb 23, 2023
11e18f2
Merge branch 'devcontainers:gh-pages' into gh-pages
officialmofabs Feb 28, 2023
f144cca
Merge branch 'devcontainers:gh-pages' into gh-pages
officialmofabs Mar 1, 2023
75ddb15
Create .github/workflows/label.yml
officialmofabs Mar 1, 2023
62dd429
Merge branch 'devcontainers:gh-pages' into gh-pages
officialmofabs Mar 6, 2023
b700dd6
Create .github/workflows/snyk-container.yml
officialmofabs Mar 6, 2023
ec6dd05
Merge branch 'devcontainers:gh-pages' into gh-pages
officialmofabs Mar 12, 2023
6ec5984
fix: Gemfile & Gemfile.lock to reduce vulnerabilities
snyk-bot Apr 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# && apt-get -y install --no-install-recommends npm install -g wrangler

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g wrangler
2>&1
7 changes: 3 additions & 4 deletions .devcontainer/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ RUN gem install bundler jekyll github-pages
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# && apt-get -y install --no-install-recommends npm install -g wrangler

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/src" # Location of package manifests
schedule:
interval: "weekly"
47 changes: 47 additions & 0 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# hadoint is a Dockerfile linter written in Haskell
# that helps you build best practice Docker images.
# More details at https://github.com/hadolint/hadolint

name: Hadolint

on:
push:
branches: [ "gh-pages" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "gh-pages" ]
schedule:
- cron: '23 5 * * 5'

permissions:
contents: read

jobs:
hadolint:
name: Run hadolint scanning
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run hadolint
uses: hadolint/hadolint-action@f988afea3da57ee48710a9795b6bb677cc901183
with:
dockerfile: ./Dockerfile
format: sarif
output-file: hadolint-results.sarif
no-fail: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: hadolint-results.sarif
wait-for-processing: true
63 changes: 63 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["gh-pages"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
with:
ruby-version: '3.0' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
22 changes: 22 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on: [pull_request_target]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
55 changes: 55 additions & 0 deletions .github/workflows/snyk-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# A sample workflow which checks out the code, builds a container
# image using Docker and scans that image for vulnerabilities using
# Snyk. The results are then uploaded to GitHub Security Code Scanning
#
# For more examples, including how to limit scans to only high-severity
# issues, monitor images for newly disclosed vulnerabilities in Snyk and
# fail PR checks for new vulnerabilities, see https://github.com/snyk/actions/

name: Snyk Container

on:
push:
branches: [ "gh-pages", *sqlserver, main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "gh-pages" ]
schedule:
- cron: '16 19 * * 3'

permissions:
contents: read

jobs:
snyk:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build a Docker image
run: docker build -t your/image-to-test .
- name: Run Snyk to check Docker image for vulnerabilities
# Snyk can be used to break the build when it detects vulnerabilities.
# In this case we want to upload the issues to GitHub Code Scanning
continue-on-error: true
uses: snyk/actions/docker@14818c4695ecc4045f33c9cee9e795a788711ca4
env:
# In order to use the Snyk Action you will need to have a Snyk API token.
# More details in https://github.com/snyk/actions#getting-your-snyk-token
# or you can signup for free at https://snyk.io/login
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: your/image-to-test
args: --file=Dockerfile
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
containers.dev
igecloud.dev/devcontainers
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @devcontainers/maintainers
* @igeclouds/maintainers
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
source "https://rubygems.org"
ruby RUBY_VERSION

gem "jekyll", "3.6.2"
gem "jekyll", "3.9.0"

# to use GitHub Pages
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jemoji"
gem "github-pages"
gem "jemoji", ">= 0.10.0"
gem "github-pages", ">= 207"
gem "jekyll-remote-theme"
end

Expand Down
Loading