Skip to content

Commit 986e7e3

Browse files
committed
Fix YAML errors/warnings
1 parent ec4c29b commit 986e7e3

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
# Controls when the workflow will run
44
on:
5-
# Triggers the workflow on push or pull request events but only for the main branch
5+
# Triggers the workflow on push or pull request events but only for main
66
push:
77
branches: [ main ]
88
pull_request:
@@ -11,20 +11,20 @@ on:
1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
1313

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

2121
env:
22-
STPATOOLS_VERSION: "42e07abc5510f5864aa102aa7ae1e8349911a620"
22+
STPATOOLS_VER: "42e07abc5510f5864aa102aa7ae1e8349911a620"
2323
STPATOOLS_REPO: "https://gitlab.com/CodethinkLabs/stpatools.git"
2424

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

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

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

3838
# Validate STPA files
3939
- name: Validate STPA files (STPA_DynMA)
4040
run: stpa-validate STPA_DynMA/*.yml
41-
41+
4242
- name: Validate STPA files
4343
run: stpa-validate stack-memory/*.yml

stack-memory/components.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ Components:
55

66
Control Actions:
77

8-
- Identifier: MAN-Start-SAF
9-
Text: Start process X
10-
Target: SAF
8+
- Identifier: MAN-Start-SAF
9+
Text: Start process X
10+
Target: SAF
1111

12-
- Identifier: MAN-Start-OTH
13-
Text: Start other process
14-
Target: OTH
12+
- Identifier: MAN-Start-OTH
13+
Text: Start other process
14+
Target: OTH
1515

16-
- Identifier: MAN-Launch
17-
Text: Launch process
18-
Target: KERN
16+
- Identifier: MAN-Launch
17+
Text: Launch process
18+
Target: KERN
1919

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

2323
Control Actions:
2424

25-
- Identifier: SAF-Call
26-
Text: Call to a LibC function
27-
Target: LIBC
25+
- Identifier: SAF-Call
26+
Text: Call to a LibC function
27+
Target: LIBC
2828

2929
- Identifier: OTH
3030
Text: Other Process
3131

3232
Control Actions:
3333

34-
- Identifier: OTH-Call
35-
Text: Call to a LibC function
36-
Target: LIBC
34+
- Identifier: OTH-Call
35+
Text: Call to a LibC function
36+
Target: LIBC
3737

3838
- Identifier: LIBC
3939
Text: C Library (GLibC)
@@ -70,9 +70,9 @@ Components:
7070

7171
Control Actions:
7272

73-
- Identifier: KERN-Call
74-
Text: Call to a kernel subroutine
75-
Target: KSUB
73+
- Identifier: KERN-Call
74+
Text: Call to a kernel subroutine
75+
Target: KSUB
7676

7777
Feedback:
7878

0 commit comments

Comments
 (0)