Skip to content

Commit

Permalink
Merge pull request #56 from mitre/current-upgrade
Browse files Browse the repository at this point in the history
current upgrade
  • Loading branch information
aaronlippold authored Jan 6, 2024
2 parents 677b424 + a99810f commit 638fffb
Show file tree
Hide file tree
Showing 378 changed files with 16,508 additions and 1,556 deletions.
1 change: 1 addition & 0 deletions .bin/autoprefixer
1 change: 1 addition & 0 deletions .bin/browserslist
1 change: 1 addition & 0 deletions .bin/csv2json
1 change: 1 addition & 0 deletions .bin/csv2tsv
1 change: 1 addition & 0 deletions .bin/cypress
1 change: 1 addition & 0 deletions .bin/dsv2dsv
1 change: 1 addition & 0 deletions .bin/dsv2json
1 change: 1 addition & 0 deletions .bin/envinfo
1 change: 1 addition & 0 deletions .bin/esbuild
1 change: 1 addition & 0 deletions .bin/esparse
1 change: 1 addition & 0 deletions .bin/esvalidate
1 change: 1 addition & 0 deletions .bin/extract-zip
1 change: 1 addition & 0 deletions .bin/is-ci
1 change: 1 addition & 0 deletions .bin/js-yaml
1 change: 1 addition & 0 deletions .bin/json2csv
1 change: 1 addition & 0 deletions .bin/json2dsv
1 change: 1 addition & 0 deletions .bin/json2tsv
1 change: 1 addition & 0 deletions .bin/markdown-it
1 change: 1 addition & 0 deletions .bin/nanoid
1 change: 1 addition & 0 deletions .bin/node-which
1 change: 1 addition & 0 deletions .bin/parser
1 change: 1 addition & 0 deletions .bin/ps-tree
1 change: 1 addition & 0 deletions .bin/qrcode
1 change: 1 addition & 0 deletions .bin/rimraf
1 change: 1 addition & 0 deletions .bin/rollup
1 change: 1 addition & 0 deletions .bin/sass
1 change: 1 addition & 0 deletions .bin/semver
1 change: 1 addition & 0 deletions .bin/server-test
1 change: 1 addition & 0 deletions .bin/sitemap
1 change: 1 addition & 0 deletions .bin/sshpk-conv
1 change: 1 addition & 0 deletions .bin/sshpk-sign
1 change: 1 addition & 0 deletions .bin/sshpk-verify
1 change: 1 addition & 0 deletions .bin/start-server-and-test
1 change: 1 addition & 0 deletions .bin/start-test
1 change: 1 addition & 0 deletions .bin/tsv2csv
1 change: 1 addition & 0 deletions .bin/tsv2json
1 change: 1 addition & 0 deletions .bin/update-browserslist-db
1 change: 1 addition & 0 deletions .bin/uuid
1 change: 1 addition & 0 deletions .bin/uvu
1 change: 1 addition & 0 deletions .bin/vite
1 change: 1 addition & 0 deletions .bin/vuepress
1 change: 1 addition & 0 deletions .bin/vuepress-cli
1 change: 1 addition & 0 deletions .bin/vuepress-vite
1 change: 1 addition & 0 deletions .bin/wait-on
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Basic `dependabot.yml` file with
# minimum configuration for two package managers

version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
37 changes: 37 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is used with the label workflow which
# will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# For more information, see:
# https://github.com/actions/labeler
#
# ├── ./src/courses
# │ ├── ./courses/advanced
# │ ├── ./courses/beginner
# │ ├── ./courses/guidance
# │ └── ./courses/user

docs: docs/*
example: examples/**/*
repository: packages/repository/*

'user':
- changed-files:
- any-glob-to-any-file: ['src/courses/user/**/*']

'beginner':
- changed-files:
- any-glob-to-any-file: ['src/courses/beginner/**/*']

'advanced':
- changed-files:
- any-glob-to-any-file: ['src/courses/advanced/**/*']

'guidance':
- changed-files:
- any-glob-to-any-file: ['src/courses/guidance/**/*']

'courses':
- changed-files:
- any-glob-to-any-file: ['src/courses/**/*']

22 changes: 22 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Cypress Tests

on: [push, pull_request]

jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run docs:build
start: npm run ci
10 changes: 5 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: Deploy Docs
on:
push:
branches:
# make sure this is the branch you are using
- main

permissions:
contents: write

jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
Expand All @@ -14,8 +16,6 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
# if your docs needs submodules, uncomment the following line
# submodules: true

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -24,11 +24,11 @@ jobs:
cache: npm

- name: Deploy Docs
uses: intergiro/vuepress-deploy@fix_git_repo # Update back to jenkey2011/vuepress-deploy@master once merged
uses: intergiro/vuepress-deploy@fix_git_repo # Update back to jenkey2011/vuepress-deploy@master once merged
env:
GITHUB_DEPLOY: true
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_REPO: mitre/saf-training
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: npm ci && npm run docs:build
BUILD_DIR: .vuepress/dist/
BUILD_DIR: src/.vuepress/dist/
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 }}"
27 changes: 27 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '37 2 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules/
.vuepress/.cache/**
.vuepress/dist/
.vuepress/.temp/
src/.vuepress/.cache/**
src/.vuepress/dist/**
src/.vuepress/.temp/**
.DS_Store
Loading

0 comments on commit 638fffb

Please sign in to comment.