diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 5314356..ec07b42 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -31,8 +31,13 @@ jobs: name: ${{ matrix.name }} runs-on: ${{ matrix.runner }} steps: - - uses: actions/checkout@v3 - - uses: Swatinem/rust-cache@v2 + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 + with: + egress-policy: audit + + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - uses: step-security/rust-cache@9be15b830520fab0ec3939586e917e4855cf76bd # v2.8.3 with: # rust-cache already handles all the sane defaults for caching rust builds. # However, because we are running separate debug/release builds in parallel, diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fdff848..f394a3d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,12 @@ jobs: name: "Check that the project is releaseable" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 + with: + egress-policy: audit + + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Run checks run: atsc/release/is_releasable.sh @@ -20,11 +25,16 @@ jobs: needs: prepublish-check runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v4 + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 + with: + egress-policy: audit + + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Build & test run: atsc/release/build_release.sh - name: Publish - uses: marvinpinto/action-automatic-releases@latest + uses: marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1 # latest with: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false