Skip to content
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

Strict confinement #1382

Closed
wants to merge 179 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
7616bf1
Splitting from snapcraft
ktsakalozos Jan 16, 2020
8b131b9
Better error handling
ktsakalozos Jan 17, 2020
06aec2e
Work on testing
ktsakalozos Jan 17, 2020
d478948
Work on the help command
ktsakalozos Jan 17, 2020
d54fca6
Fix installer exit, no environment variables passthrough in execution
ktsakalozos Jan 19, 2020
06e6b3c
Adding arguments to install
ktsakalozos Jan 19, 2020
d8ae1bb
Temporary rename lxc template files
ktsakalozos Jan 21, 2020
d1f1fd0
First pass on strict confinement
joedborg Jan 21, 2020
6c29d0e
Add runc patch
joedborg Jan 22, 2020
ad311c6
Work on windows installer
ktsakalozos Jan 23, 2020
6a36209
Replace all sysmtemctl with snapctl
joedborg Jan 23, 2020
fd4f718
Moving snapcraft
joedborg Jan 23, 2020
51c88fe
Add appveyor
ktsakalozos Jan 23, 2020
c940202
Fix appveyor
ktsakalozos Jan 23, 2020
a9c8fed
Fix appveyor
ktsakalozos Jan 23, 2020
ea9580b
PyInstaller in appveyor
ktsakalozos Jan 23, 2020
2cfa659
Remove all sudo calls
joedborg Jan 23, 2020
ac3efa9
Fix
ktsakalozos Jan 23, 2020
6fa7c45
Fix
ktsakalozos Jan 23, 2020
b04f233
Fix
ktsakalozos Jan 23, 2020
8aa3b58
Fix
ktsakalozos Jan 23, 2020
8f0b5ff
Path fixxing
ktsakalozos Jan 24, 2020
4c82d05
Path fixxing
ktsakalozos Jan 24, 2020
8df83a7
Path fixxing2
ktsakalozos Jan 24, 2020
399dadb
Path fixxing3
ktsakalozos Jan 24, 2020
112349a
Path fixxing4
ktsakalozos Jan 24, 2020
6d513c8
Call snap curl
joedborg Jan 27, 2020
0493a19
Fixing helm installs
joedborg Jan 27, 2020
eab13b2
Fix tar unpacks with no same owner flag
joedborg Jan 27, 2020
4d1978d
Adding network-control to api kicker
joedborg Jan 27, 2020
c571b9c
Fixing local storage
joedborg Jan 27, 2020
006db1c
Fix enable gpu (nvidia pod still broken)
joedborg Jan 29, 2020
3743aa5
Update coredns
joedborg Jan 30, 2020
7e93bd1
Adding runc pivot root patch
joedborg Jan 30, 2020
ed185af
Updating nvidia version
joedborg Jan 31, 2020
7e48a52
Getting installer working on Linux
joedborg Feb 4, 2020
4478ba3
Adding layout to try and get GPU support working
joedborg Feb 5, 2020
a951d70
No need to create instance before running command
joedborg Feb 6, 2020
b26c156
Use multipass 1.0.0
joedborg Feb 6, 2020
617a134
Merge branch 'master' into feature/jdb/installer
joedborg Feb 7, 2020
5086921
Remove latest requirement
joedborg Feb 7, 2020
e592664
Iterate over all releases
joedborg Feb 7, 2020
a3dcdd7
Correct post download checksum
joedborg Feb 7, 2020
791e63f
Remove merge travis
joedborg Feb 7, 2020
9352a9d
Merge pull request #951 from ubuntu/feature/jdb/installer
ktsakalozos Feb 10, 2020
efc8691
Merge branch 'master' of github.com:ubuntu/microk8s into feature/jdb/…
joedborg Feb 13, 2020
eb8be76
Merge branch 'feature/jdb/strict' of github.com:ubuntu/microk8s into …
joedborg Feb 13, 2020
65f550a
Fixing bad merge
joedborg Feb 13, 2020
c4c3132
Merge branch 'master' into feature/jdb/strict
joedborg Feb 28, 2020
490a8a5
Correcting build docs
joedborg Mar 2, 2020
a0a4038
Merge in master to fix Juju
joedborg Mar 2, 2020
be581b6
Merge branch 'master' into feature/jdb/strict
joedborg Mar 3, 2020
6e792aa
Apply patches to libnvidia
joedborg Mar 5, 2020
07de78f
Merge branch 'master' into feature/jdb/strict
joedborg Mar 5, 2020
f00183e
Patch makefile to prefix snap environment
joedborg Mar 5, 2020
32f2c54
Install libnvidia to /usr instead of /usr/local
joedborg Mar 5, 2020
d12ac5e
Build nvidia libs
joedborg Mar 18, 2020
229cc6a
Add journald plug to containerd
joedborg Mar 25, 2020
2933b89
Add snap build on push and PRs
joedborg Mar 30, 2020
1e6917a
Add more Nvidia driver libraries needed
joedborg Apr 2, 2020
3f99883
Fix ctr wrapper
joedborg Apr 13, 2020
bb6770a
Adding ld-cache plug
joedborg Apr 16, 2020
970345c
Update containerd to 1.3.4
joedborg Apr 24, 2020
57293ad
Adding plugs recommended by snappy-debug
joedborg Apr 28, 2020
b162331
Update metrics server
balchua May 28, 2020
aa7d418
Fix for strict
joedborg Jun 30, 2020
2e6a0b7
Fix snapcraft-preload
joedborg Jun 30, 2020
2547c79
Merge branch 'master' into feature/jdb/strict
joedborg Jul 1, 2020
ae857ab
Manually merge snapcraft.yaml
joedborg Jul 1, 2020
3dd1e36
More merge fixing
joedborg Jul 1, 2020
1c1a6f4
Stage merge from master
joedborg Jul 2, 2020
bae10e2
Complete merge
joedborg Jul 2, 2020
e5c50c1
Update patches
joedborg Jul 2, 2020
c2dbd9d
Fix GH action
joedborg Jul 2, 2020
6bec295
Trying to fix sg error
joedborg Jul 2, 2020
ada2517
Remove redundant action
joedborg Jul 2, 2020
bdf9bd2
Merge branch 'master' into feature/jdb/strict
joedborg Jul 6, 2020
f14d8a3
Update cilium to 1.7.6
joedborg Jul 6, 2020
c054d71
Adding interfaces to fix denials
joedborg Jul 6, 2020
7a11b70
Swap snap for snapctl
joedborg Jul 7, 2020
28abff6
No SSL check for istio
joedborg Jul 7, 2020
56cecb3
Use correct path to CA cert
joedborg Jul 8, 2020
f5323de
Remove all run_with_sudo
joedborg Jul 8, 2020
98d1024
Merge branch 'master' into feature/jdb/strict
joedborg Jul 8, 2020
7b0e1c0
Account control plug
joedborg Jul 8, 2020
fb29990
Remove pivotroot patch as it causes whole FS to mount to pods
joedborg Jul 8, 2020
139c5e3
system-files for ca cert
joedborg Jul 8, 2020
7fbef60
system-files for ca cert
joedborg Jul 8, 2020
1da71b8
Merge branch 'master' into feature/jdb/strict
joedborg Jul 10, 2020
381dfb7
Merge branch 'master' into feature/jdb/strict
joedborg Jul 27, 2020
e8dfbb4
snap/snapcraft.yaml: update daemon-controller-manager to plugs k8s-jo…
Aug 4, 2020
4072730
update snap-runc-no-prctl.patch for standard_init_linux.go too
Aug 5, 2020
20cd786
microk8s-{dis,en}able.wrapper: avoid denial when running under sudo w…
Aug 5, 2020
bf791c2
remove all uses of sudo from wrappers
Aug 5, 2020
1d99df6
plugs kernel-crypto-api for daemon-containerd
Aug 7, 2020
168c9fb
Merge pull request #1479 from jdstrand/feature/jdstrand/strict-updates
joedborg Aug 12, 2020
a12fd4b
Merge branch 'master' into feature/jdb/strict
joedborg Aug 12, 2020
ea11ed4
Fix merge
joedborg Aug 12, 2020
ccb73c7
Further work for strict
joedborg Aug 17, 2020
c50afc1
Remove redundant interfaces
joedborg Aug 19, 2020
95f11f1
Tidying up remaining broken addons
joedborg Aug 21, 2020
a676135
Remove cni0 when network-control is (dis)connected
joedborg Aug 24, 2020
bd663f2
Include cilium interface
joedborg Aug 24, 2020
94aedb5
Merge branch 'master' into feature/jdb/strict
joedborg Aug 24, 2020
03ce115
Add all needed plug hooks
joedborg Aug 26, 2020
6e1d137
Inspect cannot run under sudo
joedborg Aug 27, 2020
d44eb17
Merge branch 'master' into feature/jdb/strict
joedborg Aug 27, 2020
97df96e
Merge branch 'master' into feature/jdb/strict
joedborg Aug 28, 2020
79a91a2
Make Calico Node work
joedborg Aug 28, 2020
89f1a11
Merge branch 'master' into feature/jdb/strict
joedborg Sep 23, 2020
4851909
Merge branch 'master' into feature/jdb/strict
joedborg May 10, 2021
91f9c2c
Fixes to run in devmode
joedborg May 14, 2021
26d4b1d
Merge branch 'master' into feature/jdb/strict
joedborg May 18, 2021
6f3188b
Test in devmode
joedborg May 18, 2021
0d7c20b
Stuff should not be implicitly calling microk8s
joedborg May 18, 2021
b1dfac4
Merge branch 'master' into feature/jdb/strict
joedborg May 20, 2021
da69e49
Remove Nvidia layouts
joedborg May 21, 2021
478e809
Remove unused build paths (#2284)
ktsakalozos May 24, 2021
538af85
Get containerd confined (#2286)
ktsakalozos May 25, 2021
c856d77
snap: remove patches section from snapcraft file (#2287)
mardy May 25, 2021
02e3248
microk8s-resources: simplify the first-boot detection (#2292)
mardy May 27, 2021
640d48a
snap: grant kubectl access to networking (#2294)
mardy May 27, 2021
c571f9a
snap: add some kubectl permissions to microk8s script (#2308)
mardy Jun 2, 2021
afed1bc
Include libz4 for dqlite snapshot compression
ktsakalozos Jun 3, 2021
f79c1ab
snap: add kernel-module-control plug to the apiserver (#2316)
mardy Jun 3, 2021
9091161
coredns: allow privilege escalation (#2319)
mardy Jun 7, 2021
b22a0cf
Merge branch 'master' into feature/jdb/strict
joedborg Jul 9, 2021
08d1590
Merge branch 'feature/jdb/strict' of github.com:ubuntu/microk8s into …
joedborg Jul 9, 2021
e48b17f
snap: declare the microk8s user and group (#2417)
mardy Jul 14, 2021
f499f5f
Invert aa nnp order (#2346)
mardy Jul 14, 2021
a78ab0f
snap: fix usage of passthrough directive (#2437)
mardy Jul 14, 2021
65d3201
Merge branch 'master' of github.com:ubuntu/microk8s into feature/jdb/…
joedborg Jul 14, 2021
d13e1ff
Merge branch 'feature/jdb/strict' of github.com:ubuntu/microk8s into …
joedborg Jul 14, 2021
66ae18b
build-scripts: update NNP patches (#2439)
mardy Jul 15, 2021
354ee28
Merge branch 'feature/jdb/strict' of github.com:ubuntu/microk8s into …
joedborg Jul 15, 2021
476dd52
Remove redundant interfaces
joedborg Jul 26, 2021
245c891
Merge branch 'master' into feature/jdb/strict
joedborg Aug 9, 2021
99c4bde
Fix the ufw commands in strict
joedborg Aug 10, 2021
73d181f
Work around LP bug https://bugs.launchpad.net/snapcraft/+bug/1864589
joedborg Aug 11, 2021
d5f6f5c
Merge branch 'master' into feature/jdb/strict
joedborg Aug 11, 2021
f6af1bb
Fix sym links for hooks#
joedborg Aug 12, 2021
f75f757
Disable all services at install time and only enable them once all of
joedborg Aug 18, 2021
91173de
Remove redundant interfaces
joedborg Aug 19, 2021
227af56
Only enable services after configure hook has run
joedborg Aug 24, 2021
5b58288
snap/hooks/configure: ensure that $SNAP_DATA/certs/ exists (#2537)
mardy Aug 25, 2021
3b8c528
Make required directories for strict
joedborg Aug 25, 2021
1c0bb95
Gate order of hooks called
joedborg Aug 26, 2021
73916d0
Fix style check (#2544)
ktsakalozos Aug 27, 2021
2067e41
Changing order of hooks again
joedborg Aug 27, 2021
d121821
Merge branch 'feature/jdb/strict' of github.com:ubuntu/microk8s into …
joedborg Aug 27, 2021
30d80d6
Tidying up
joedborg Aug 27, 2021
e9aa36a
snap: bind-mount the whole /etc/service/enabled/ directory (#2522)
mardy Sep 1, 2021
139f6c8
Add snap_microk8s group and missing slot (#2560)
ktsakalozos Sep 7, 2021
b41ca1f
Revert the snap_microk8s group inclusion until snapd 2.52 s released …
ktsakalozos Sep 7, 2021
2be92ce
Have GH tests running for strict and devmode (#2545)
ktsakalozos Sep 7, 2021
f03eb4c
Split Helm cache out
joedborg Sep 7, 2021
0fc6a7f
Ensure dot-helm is connected (#2565)
ktsakalozos Sep 8, 2021
d6ae7f1
Upgrade tests for strict branch (#2569)
joedborg Sep 17, 2021
5c1bf0a
Upload AppArmor denials post tests (#2590)
joedborg Sep 27, 2021
dad1920
Add sh requirement (#2616)
joedborg Sep 30, 2021
55fa0b3
Merge branch 'feature/jdb/strict' of github.com:ubuntu/microk8s into …
joedborg Sep 30, 2021
cb5436f
snap: grant sys_module capability to network hooks (#2630)
mardy Oct 7, 2021
5c7ff08
scripts/inspect.sh: prefer journalctl over dmesg (#2641)
mardy Oct 14, 2021
a7d5a71
Merge branch 'master' into feature/jdb/strict-merge-no-ff
joedborg Oct 21, 2021
662615d
Move storage-dir argument to k8s-dqlite
ktsakalozos Oct 21, 2021
1ecf79b
Skip OpenEBS tests in strict
joedborg Oct 21, 2021
226c9bb
Remove merge conflict artifacts
joedborg Oct 22, 2021
52d7135
Merge pull request #2673 from ubuntu/feature/jdb/strict-merge-no-ff
ktsakalozos Oct 25, 2021
25232b9
Initial work on snap_microk8s group (#2564)
ktsakalozos Nov 1, 2021
c98c417
Bundle nano with strict in order to be able to use `kubectl edit` (#2…
joedborg Nov 19, 2021
2d526d2
Feature/jdb/strict merge (#2742)
joedborg Nov 23, 2021
087b0c7
Runc now requires Go 1.16 minimum in order to go get (#2799)
joedborg Dec 15, 2021
8091ab5
Feature/jdb/strict merge no ff 2 (#2820)
joedborg Jan 13, 2022
b12ae07
Feature/jdb/strict merge no ff (#2850)
joedborg Jan 19, 2022
9c8f481
Check strict common mistakes (#2854)
joedborg Jan 20, 2022
4fa11f2
Remove sudo from inspection (#2855)
joedborg Jan 20, 2022
c647e22
Mardy/remove kernel module control (#2861)
joedborg Jan 20, 2022
ef9820f
Feature/jdb/strict merge (#2877)
joedborg Jan 24, 2022
f17365f
Feature/jdb/strict merge no ff (#2939)
joedborg Feb 23, 2022
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
14 changes: 7 additions & 7 deletions .github/workflows/build-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
working-directory: ${{ github.workspace }}/installer/windows
steps:
- name: Checkout
uses: actions/checkout@v2.3.5
uses: actions/checkout@v2.4.0
- name: Set up Python 3.8
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v2.3.2
with:
python-version: 3.8
- name: Install Python requirements
Expand All @@ -30,21 +30,21 @@ jobs:
working-directory: ${{ github.workspace }}/installer
run: move microk8s.exe ./windows/microk8s.exe
- name: Download EnVar plugin for NSIS
uses: carlosperate/download-file-action@v1.0.3
uses: carlosperate/download-file-action@v1.1.0
with:
file-url: https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip
file-url: https://github.com/GsNSIS/EnVar/releases/download/v0.3.1/EnVar-Plugin.zip
file-name: envar_plugin.zip
location: ${{ github.workspace }}
- name: Extract EnVar plugin
run: 7z x -o"C:/Program Files (x86)/NSIS" "${{ github.workspace }}/envar_plugin.zip"
- name: Download Multipass installer
uses: carlosperate/download-file-action@v1.0.3
uses: carlosperate/download-file-action@v1.1.0
with:
file-url: https://github.com/canonical/multipass/releases/download/v1.7.2/multipass-1.7.2+win-win64.exe
file-url: https://github.com/canonical/multipass/releases/download/v1.8.0/multipass-1.8.0+win-win64.exe
file-name: multipass.exe
location: ${{ github.workspace }}/installer/windows
- name: Download kubectl
uses: carlosperate/download-file-action@v1.0.3
uses: carlosperate/download-file-action@v1.1.0
with:
file-url: https://storage.googleapis.com/kubernetes-release/release/v1.20.0/bin/windows/amd64/kubectl.exe
file-name: kubectl.exe
Expand Down
117 changes: 100 additions & 17 deletions .github/workflows/build-snap.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Build MicroK8s snap on PR and push to master

on:
push:
branches:
- master
pull_request:
branches:
- master
- push
- pull_request

### While we work on the strict feature we want the tests to run even if we do put PRs against the master.
### When this work get merged into master the following should be commented in.
# push:
# branches:
# - master
# pull_request:
# branches:
# - master

jobs:
build:
Expand All @@ -15,7 +20,7 @@ jobs:

steps:
- name: Checking out repo
uses: actions/checkout@v2.3.5
uses: actions/checkout@v2.4.0
- name: Install lxd
run: |
sudo lxd init --auto
Expand All @@ -32,33 +37,111 @@ jobs:
with:
name: microk8s.snap
path: microk8s.snap
- name: Fetch addon tests
run: |
set -x
sudo apt-get install python3-click
source ./build-scripts/set-env-variables.sh
python3 build-scripts/fetch-addons.py
cp -r core/tests ./tests/addon-tests
# TEMPORARY WHILE GITHUB FIXES THIS https://github.com/actions/virtual-environments/issues/3185
- name: Add the current IP address, long hostname and short hostname record to /etc/hosts file
run: |
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
# DO NOT FORGET TO REMOVE CODE ABOVE WHEN ISSUE IS ADDRESSED!
- name: Running upgrade path test
- name: Install dependencies
run: |
set -x
sudo apt-get install python3-setuptools
sudo pip3 install --upgrade pip
sudo pip3 install -U pytest sh
sudo -E UPGRADE_MICROK8S_FROM=latest/edge UPGRADE_MICROK8S_TO=`pwd`/`ls microk8s*.snap` pytest -s ./tests/test-upgrade-path.py
sudo snap remove microk8s --purge
- name: Running addons tests
run: |
set -x
sudo apt-get -y install open-iscsi
sudo systemctl enable iscsid
sudo snap install *.snap --classic --dangerous
# Remove the snapd refresh as soon as v2.52 lands
sudo snap refresh snapd --channel=latest/edge
- name: Check branches
run: |
set -x
(cd tests; pytest -s verify-branches.py)
- name: Running addons tests in strict mode
run: |
set -x
sudo snap install microk8s.snap --dangerous
for i in docker-privileged docker-support kubernetes-support k8s-journald k8s-kubelet \
k8s-kubeproxy dot-kube network network-bind network-control network-observe \
firewall-control process-control kernel-module-observe mount-observe \
hardware-observe system-observe home opengl home-read-all \
login-session-observe log-observe dot-config-helm
do
sudo snap connect microk8s:$i
done
./tests/smoke-test.sh
export UNDER_TIME_PRESSURE="True"
export SKIP_OPENEBS="True"
export SKIP_PROMETHEUS="False"
(cd tests; pytest -s verify-branches.py)
(cd tests; sudo -E pytest -s -ra test-addons.py)
(cd tests; sudo -E pytest -s -ra addon-tests/test-addons.py)
sudo microk8s inspect |
grep -Po "Report tarball is at \K.+" |
sudo xargs -I {} mv {} inspection-report-strict-${{ strategy.job-index }}.tar.gz
sudo snap remove microk8s --purge
- name: Running upgrade tests
sudo rm -rf $HOME/.kube
sudo rm -rf $HOME/.config/helm
sudo dmesg | grep 'apparmor="DENIED"' > ./denials-${{ strategy.job-index }}.log
- name: Upload strict inspect tarball
uses: actions/upload-artifact@v2
with:
name: inspection-report-strict-actions
path: ./inspection-report-strict-${{ strategy.job-index }}.tar.gz
- name: Upload AppArmor denials
uses: actions/upload-artifact@v2
with:
name: apparmor-denials
path: ./denials-${{ strategy.job-index }}.log
- name: Running addons tests in devmode
run: |
set -x
sudo snap install microk8s.snap --devmode --dangerous
for i in docker-privileged docker-support kubernetes-support k8s-journald k8s-kubelet \
k8s-kubeproxy dot-kube network network-bind network-control network-observe \
firewall-control process-control kernel-module-observe mount-observe \
hardware-observe system-observe home opengl home-read-all \
login-session-observe log-observe dot-config-helm
do
sudo snap connect microk8s:$i
done
./tests/smoke-test.sh
export UNDER_TIME_PRESSURE="True"
sudo -E UPGRADE_MICROK8S_FROM=latest/edge UPGRADE_MICROK8S_TO=`pwd`/`ls microk8s*.snap` pytest -s ./tests/test-upgrade.py
export SKIP_OPENEBS="False"
export SKIP_PROMETHEUS="False"
(cd tests; sudo -E pytest -s -ra test-addons.py)
sudo microk8s inspect |
grep -Po "Report tarball is at \K.+" |
sudo xargs -I {} mv {} inspection-report-devmode-${{ strategy.job-index }}.tar.gz
sudo snap remove microk8s --purge
- name: Upload devmode inspect tarball
uses: actions/upload-artifact@v2
with:
name: inspection-report-devmode-actions
path: ./inspection-report-devmode-${{ strategy.job-index }}.tar.gz
- name: Generate AppArmor on failure
run: sudo dmesg | grep 'apparmor="DENIED"' > ./denials-${{ strategy.job-index }}.log
if: failure()
- name: Upload AppArmor denials failure
uses: actions/upload-artifact@v2
with:
name: apparmor-denials
path: ./denials-${{ strategy.job-index }}.log
if: failure()
- name: Generate inspect tarball
run: >
sudo microk8s inspect |
grep -Po "Report tarball is at \K.+" |
sudo xargs -I {} mv {} inspection-report-fail-${{ strategy.job-index }}.tar.gz
if: failure()
- name: Upload inspect tarball
uses: actions/upload-artifact@v2
with:
name: inspection-report-actions
path: ./inspection-report-fail-${{ strategy.job-index }}.tar.gz
if: failure()
4 changes: 2 additions & 2 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
- pull_request

jobs:
build:
check-formatting:
name: Check Formatting
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2.3.5
uses: actions/checkout@v2.4.0

- name: Install dependencies
run: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/strict-common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check common strict merge issues

on:
- push
- pull_request

jobs:
strict-common:
name: Check common strict merge issues
runs-on: ubuntu-20.04

steps:
- name: Checking out repo
uses: actions/[email protected]

- name: Checking run_with_sudo
run: |
if grep -lr --exclude-dir="workflow" "run_with_sudo" *
then
echo "run_with_sudo found, failing."
exit 1
else
echo "run_with_sudo not found, passing."
fi
Loading