Skip to content

Commit

Permalink
Change harden runner egress to audit (#457)
Browse files Browse the repository at this point in the history
* Specify license for multiformats deps

* Specify hraden-runner egress policy to audit

* ci: change engress policy to audit for license workflow
  • Loading branch information
waybackarchiver authored Feb 10, 2024
1 parent 5de16ff commit 7fe2507
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
with:
language: ${{ matrix.language }}
config-file: './.github/codeql/codeql-config.yml'
egress-policy: audit

nancy:
name: Sonatype Nancy
Expand Down Expand Up @@ -85,3 +86,4 @@ jobs:
with:
scan-type: 'fs'
sarif: 'filesystem.sarif'
egress-policy: audit
6 changes: 6 additions & 0 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
go-mips64: ${{ matrix.mips64 }}
go-mipsle: ${{ matrix.mipsle }}
artifact-path: ./build/binary/wayback*
egress-policy: audit
secrets:
wayback-ipfs-apikey: ${{ secrets.WAYBACK_IPFS_APIKEY }}

Expand All @@ -122,6 +123,7 @@ jobs:
go-arch: ${{ matrix.arch }}
go-arm: ${{ matrix.arm }}
artifact-path: build/package/wayback*.deb
egress-policy: audit
secrets:
wayback-ipfs-apikey: ${{ secrets.WAYBACK_IPFS_APIKEY }}

Expand All @@ -132,6 +134,7 @@ jobs:
product: wayback
params: 'make rpm'
artifact-path: build/package/wayback*.rpm
egress-policy: audit
secrets:
wayback-ipfs-apikey: ${{ secrets.WAYBACK_IPFS_APIKEY }}

Expand All @@ -145,6 +148,7 @@ jobs:
build/aur/.SRCINFO
build/aur/PKGBUILD
build/aur/wayback*.pkg.tar.zst
egress-policy: audit
secrets:
wayback-ipfs-apikey: ${{ secrets.WAYBACK_IPFS_APIKEY }}

Expand All @@ -155,6 +159,7 @@ jobs:
product: wayback
channel: edge
publish: ${{ github.repository == 'wabarc/wayback' && github.event_name == 'push' }}
egress-policy: audit
secrets:
wayback-ipfs-apikey: ${{ secrets.WAYBACK_IPFS_APIKEY }}
snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }}
Expand All @@ -167,5 +172,6 @@ jobs:
version: edge
params: 'make build'
artifact-path: org.wabarc.wayback-*.x86_64.flatpak
egress-policy: audit
secrets:
wayback-ipfs-apikey: ${{ secrets.WAYBACK_IPFS_APIKEY }}
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34 # v1.5.0
with:
egress-policy: block
egress-policy: audit
disable-telemetry: true
allowed-endpoints: >
ghcr.io:443
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34 # v1.5.0
with:
egress-policy: block
egress-policy: audit
disable-telemetry: true
allowed-endpoints: >
ghcr.io:443
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ jobs:
license:
name: License Checker
uses: wabarc/.github/.github/workflows/reusable-license.yml@main
with:
egress-policy: audit
2 changes: 2 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
golangci:
name: golangci-lint
uses: wabarc/.github/.github/workflows/reusable-golangci.yml@main
with:
egress-policy: audit

shellcheck:
name: ShellCheck
Expand Down
11 changes: 11 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ header:
- 'mkdocs.yml'

comment: on-failure

dependency:
files:
- go.mod
licenses:
- name: github.com/multiformats/go-base36
version: v0.2.0
license: Apache-2.0 OR MIT
- name: github.com/multiformats/go-multicodec
version: v0.9.0
license: Apache-2.0 OR MIT

0 comments on commit 7fe2507

Please sign in to comment.