Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbazhenoff committed Mar 31, 2024
1 parent 3ba775a commit 14040ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mega_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
fetch-depth: 0

- name: MegaLinter
# kics-scan ignore-line
# kics-scan ignore-line
uses: oxsecurity/megalinter@latest
id: ml
env:
VALIDATE_ALL_CODEBASE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Archive production artifacts
# kics-scan ignore-line
# kics-scan ignore-line
uses: actions/upload-artifact@v4
if: success() || failure()
with:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
# Create pull request if applicable
# (for now works only on PR from the same repository, not from forks)
- name: Create Pull Request with applied fixes
# kics-scan ignore-line
# kics-scan ignore-line
uses: peter-evans/create-pull-request@v6
id: cpr
if: env.APPLY_FIXES_IF_PR == 'true'
Expand All @@ -106,7 +106,7 @@ jobs:
run: sudo chown -Rc $UID .git/

- name: Commit and push applied linter fixes
# kics-scan ignore-line
# kics-scan ignore-line
uses: stefanzweifel/git-auto-commit-action@latest
if: env.APPLY_FIXES_IF_COMMIT == 'true'
with:
Expand Down
16 changes: 8 additions & 8 deletions roles/bareos/molecule/default/Dockerfile_alpine
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ ARG image_tag
# kics-scan disable=fd54f200-402c-4333-a5a4-36ef6709af2f
FROM ${image_platform}:${image_tag}
# hadolint ignore=SC3014,SC2154
RUN apk update; \
apk --no-cache add sudo bash dbus python3 gnupg ca-certificates openrc; \
mkdir -p /run/openrc; \
touch /run/openrc/softlevel; \
bash -c 'echo "rc_provide=\"loopback net\"" >> /etc/rc.conf'; \
sed -i -e 's/#rc_sys=""/rc_sys="lxc"/g' -e 's/^#\(rc_logger="YES"\)$/\1/' /etc/rc.conf; \
sed -i "/tty/d" /etc/inittab; \
sed -i "s/hostname $opts/# hostname $opts/g" /etc/init.d/hostname; \
RUN apk update && \
apk --no-cache add sudo bash dbus python3 gnupg ca-certificates openrc && \
mkdir -p /run/openrc && \
touch /run/openrc/softlevel && \
bash -c 'echo "rc_provide=\"loopback net\"" >> /etc/rc.conf'&& \
sed -i -e 's/#rc_sys=""/rc_sys="lxc"/g' -e 's/^#\(rc_logger="YES"\)$/\1/' /etc/rc.conf && \
sed -i "/tty/d" /etc/inittab && \
sed -i "s/hostname $opts/# hostname $opts/g" /etc/init.d/hostname && \
sed -i "s/mount -t tmpfs/# mount -t tmpfs/g" /lib/rc/sh/init.sh

VOLUME ["/sys/fs/cgroup"]
Expand Down

0 comments on commit 14040ae

Please sign in to comment.