mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-15 15:02:24 +00:00
ci: specify allowed-endpoints for block mode in workflows
This commit is contained in:
1 parent
80cb1d6a31
commit
df5f1fef9a
4 files changed
+83
No files matched your search
@@ -70,6 +70,21 @@ jobs:
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
api.github.com:443
|
||||
archive.ubuntu.com:80
|
||||
azure.archive.ubuntu.com:80
|
||||
binaries.sonarsource.com:443
|
||||
crates.io:443
|
||||
github.com:443
|
||||
index.crates.io:443
|
||||
objects.githubusercontent.com:443
|
||||
release-assets.githubusercontent.com:443
|
||||
scanner.sonarcloud.io:443
|
||||
security.ubuntu.com:80
|
||||
sonarcloud.io:443
|
||||
static.crates.io:443
|
||||
static.rust-lang.org:443
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
@@ -105,6 +120,21 @@ jobs:
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
api.github.com:443
|
||||
archive.ubuntu.com:80
|
||||
azure.archive.ubuntu.com:80
|
||||
binaries.sonarsource.com:443
|
||||
crates.io:443
|
||||
github.com:443
|
||||
index.crates.io:443
|
||||
objects.githubusercontent.com:443
|
||||
release-assets.githubusercontent.com:443
|
||||
scanner.sonarcloud.io:443
|
||||
security.ubuntu.com:80
|
||||
sonarcloud.io:443
|
||||
static.crates.io:443
|
||||
static.rust-lang.org:443
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
@@ -180,6 +210,21 @@ jobs:
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
api.github.com:443
|
||||
archive.ubuntu.com:80
|
||||
azure.archive.ubuntu.com:80
|
||||
binaries.sonarsource.com:443
|
||||
crates.io:443
|
||||
github.com:443
|
||||
index.crates.io:443
|
||||
objects.githubusercontent.com:443
|
||||
release-assets.githubusercontent.com:443
|
||||
scanner.sonarcloud.io:443
|
||||
security.ubuntu.com:80
|
||||
sonarcloud.io:443
|
||||
static.crates.io:443
|
||||
static.rust-lang.org:443
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
@@ -255,6 +300,21 @@ jobs:
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
api.github.com:443
|
||||
archive.ubuntu.com:80
|
||||
azure.archive.ubuntu.com:80
|
||||
binaries.sonarsource.com:443
|
||||
crates.io:443
|
||||
github.com:443
|
||||
index.crates.io:443
|
||||
objects.githubusercontent.com:443
|
||||
release-assets.githubusercontent.com:443
|
||||
scanner.sonarcloud.io:443
|
||||
security.ubuntu.com:80
|
||||
sonarcloud.io:443
|
||||
static.crates.io:443
|
||||
static.rust-lang.org:443
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -26,6 +26,11 @@ jobs:
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
api.github.com:443
|
||||
github.com:443
|
||||
objects.githubusercontent.com:443
|
||||
release-assets.githubusercontent.com:443
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
@@ -27,6 +27,15 @@ jobs:
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
api.github.com:443
|
||||
github.com:443
|
||||
archive.ubuntu.com:80
|
||||
azure.archive.ubuntu.com:80
|
||||
security.ubuntu.com:80
|
||||
archive.ubuntu.com:443
|
||||
azure.archive.ubuntu.com:443
|
||||
security.ubuntu.com:443
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Install YAML parser
|
||||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends python3-yaml tcsh rpm debsigs dpkg-dev skopeo
|
||||
|
||||
@@ -24,6 +24,15 @@ jobs:
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
api.github.com:443
|
||||
github.com:443
|
||||
archive.ubuntu.com:80
|
||||
azure.archive.ubuntu.com:80
|
||||
security.ubuntu.com:80
|
||||
archive.ubuntu.com:443
|
||||
azure.archive.ubuntu.com:443
|
||||
security.ubuntu.com:443
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Install packages
|
||||
uses: ./actions/install-apt-packages
|
||||
|
||||
Reference in new issue
Block a user