Skip to content

Commit

Permalink
Fix YAML errors/warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Albertella <[email protected]>
  • Loading branch information
reiterative committed Jan 26, 2022
1 parent ec4c29b commit 75d63de
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
# Triggers the workflow on push or pull request events but only for main
push:
branches: [ main ]
pull_request:
Expand All @@ -11,20 +11,20 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
# A workflow run consists of one or more jobs, run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
STPATOOLS_VERSION: "42e07abc5510f5864aa102aa7ae1e8349911a620"
STPATOOLS_VER: "42e07abc5510f5864aa102aa7ae1e8349911a620"
STPATOOLS_REPO: "https://gitlab.com/CodethinkLabs/stpatools.git"

# Steps represent a sequence of tasks that will be executed as part of the job
# Steps represent a sequence of tasks to be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks-out your repo under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Check that YAML files are well-formed
Expand All @@ -33,11 +33,11 @@ jobs:

# Install specific version of STPA tools from repo
- name: Install STPA tools
run: pip3 install "git+${{env.STPATOOLS_REPO}}@${{env.STPATOOLS_VERSION}}"
run: pip3 install "git+${{env.STPATOOLS_REPO}}@${{env.STPATOOLS_VER}}"

# Validate STPA files
- name: Validate STPA files (STPA_DynMA)
run: stpa-validate STPA_DynMA/*.yml

- name: Validate STPA files
run: stpa-validate stack-memory/*.yml
36 changes: 18 additions & 18 deletions stack-memory/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@ Components:

Control Actions:

- Identifier: MAN-Start-SAF
Text: Start process X
Target: SAF
- Identifier: MAN-Start-SAF
Text: Start process X
Target: SAF

- Identifier: MAN-Start-OTH
Text: Start other process
Target: OTH
- Identifier: MAN-Start-OTH
Text: Start other process
Target: OTH

- Identifier: MAN-Launch
Text: Launch process
Target: KERN
- Identifier: MAN-Launch
Text: Launch process
Target: KERN

- Identifier: SAF
Text: Process X (with safety function)

Control Actions:

- Identifier: SAF-Call
Text: Call to a LibC function
Target: LIBC
- Identifier: SAF-Call
Text: Call to a LibC function
Target: LIBC

- Identifier: OTH
Text: Other Process

Control Actions:

- Identifier: OTH-Call
Text: Call to a LibC function
Target: LIBC
- Identifier: OTH-Call
Text: Call to a LibC function
Target: LIBC

- Identifier: LIBC
Text: C Library (GLibC)
Expand Down Expand Up @@ -70,9 +70,9 @@ Components:

Control Actions:

- Identifier: KERN-Call
Text: Call to a kernel subroutine
Target: KSUB
- Identifier: KERN-Call
Text: Call to a kernel subroutine
Target: KSUB

Feedback:

Expand Down

0 comments on commit 75d63de

Please sign in to comment.