Skip to content

Commit

Permalink
Fix for address token-permission vulnerability
Browse files Browse the repository at this point in the history
KU-2045
  • Loading branch information
Maciej Golaszewski committed Nov 19, 2024
1 parent 19b9957 commit e8dcf0f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/automatic-doc-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ name: Core Documentation Checks
on:
- workflow_dispatch

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
documentation-checks:
uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
with:
working-directory: 'docs/moonray'
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
with:
working-directory: 'docs/moonray'

6 changes: 6 additions & 0 deletions .github/workflows/docs-spelling-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ on:
# pull_request:
# paths:
# - 'docs/**'
permissions:
contents: read

jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: actions/checkout@v4
- name: Install aspell
run: sudo apt-get install aspell aspell-en
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
name: Test Branch Management
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Check out code
uses: actions/checkout@v4
with:
Expand All @@ -77,6 +81,10 @@ jobs:
needs: build

steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Check out code
uses: actions/checkout@v4
- name: Setup Python
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
markdown-lint:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
runs-on: ${{ matrix.arch == 'arm64' && ["self-hosted", "Linux", "ARM64", "jammy", "large"] || ["self-hosted", "Linux", "AMD64", "jammy", "large"] }}

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 and tox
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/sync-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ name: Sync upstream images to ghcr.io
on:
workflow_dispatch:

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@v4

Expand Down

0 comments on commit e8dcf0f

Please sign in to comment.