Skip to content

Commit 26faaa5

Browse files
ci: [StepSecurity] Apply security best practices (project-copacetic#1156)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Signed-off-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com> Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
1 parent 20d5b6f commit 26faaa5

File tree

6 files changed

+30
-3
lines changed

6 files changed

+30
-3
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ updates:
3232
all:
3333
patterns:
3434
- "*"
35+
36+
- package-ecosystem: docker
37+
directory: /integration/singlearch/fixtures/openssl-test-img-debian
38+
schedule:
39+
interval: daily
40+
41+
- package-ecosystem: docker
42+
directory: /integration/singlearch/fixtures/openssl-test-img-rpm
43+
schedule:
44+
interval: daily
45+
46+
- package-ecosystem: docker
47+
directory: /integration/singlearch/fixtures/tdnf-test-img
48+
schedule:
49+
interval: daily

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ jobs:
328328
echo '{"features": { "containerd-snapshotter": true }}' | sudo tee /etc/docker/daemon.json
329329
sudo systemctl restart docker
330330
- name: Set up buildx
331-
uses: docker/setup-buildx-action@v3
331+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
332332
with:
333333
install: true
334334
- name: Install oras CLI

.github/workflows/mirror-tooling-images.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
env:
1414
GHCR_NAMESPACE: ${{ github.event.inputs.ghcr_namespace || 'ghcr.io/project-copacetic/copacetic' }}
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
mirror:
1821
runs-on: ubuntu-latest
@@ -34,6 +37,11 @@ jobs:
3437
- "mcr.microsoft.com/cbl-mariner/base/core:1.0"
3538

3639
steps:
40+
- name: Harden the runner (Audit all outbound calls)
41+
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
42+
with:
43+
egress-policy: audit
44+
3745
- name: Checkout
3846
uses: actions/checkout@e3d2460bbb42d7710191569f88069044cfb9d8cf # v4.2.2
3947

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ repos:
1616
hooks:
1717
- id: end-of-file-fixer
1818
- id: trailing-whitespace
19+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
20+
rev: 3.0.0
21+
hooks:
22+
- id: shellcheck
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM docker.io/openpolicyagent/opa:0.46.0
1+
FROM docker.io/openpolicyagent/opa:0.46.0@sha256:c4b11c9b86eaba41276ae682bb6875332316242010b7523efe30f365ad0c3cb8
22
COPY openssl.cnf /etc/ssl/openssl.cnf
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM mcr.microsoft.com/cbl-mariner/distroless/base:2.0.20240112
1+
FROM mcr.microsoft.com/cbl-mariner/distroless/base:2.0.20240112@sha256:42018e00ee5b4ae32a8d512ca0bbf64edd6ca67d2a8ab4e83358394a94181f6e
22
COPY openssl.cnf /etc/pki/tls/

0 commit comments

Comments
 (0)