Skip to content

Commit

Permalink
Harden CI follow up (#437)
Browse files Browse the repository at this point in the history
* more CI hardening

* cleanup testing bits
  • Loading branch information
louiseschmidtgen authored May 22, 2024
1 parent 8032f71 commit 0bd5c82
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/strict-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ on:
- 'autoupdate/sync/**'
pull_request:

permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checking out repo
uses: actions/checkout@v4
- name: Install lxd
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/strict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
outputs:
strict: ${{ steps.determine.outputs.strict }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Determine Strict branch
id: determine
env:
Expand All @@ -37,6 +41,10 @@ jobs:
needs: [ prepare ]
if: ${{ needs.prepare.outputs.strict }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Sync ${{ github.ref }} to ${{ needs.prepare.outputs.strict }}
uses: actions/checkout@v4
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/update-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ on:
schedule:
- cron: "0 10 * * *"

permissions:
contents: read

jobs:
update:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -18,6 +24,10 @@ jobs:
- release-1.30

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checking out repo
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 0bd5c82

Please sign in to comment.