mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-06 09:56:27 +00:00
fix: harden workflow permissions with deny-all top-level and least-privilege job scopes (#482)
This commit is contained in:
7
.github/workflows/build-testing-image.yml
vendored
7
.github/workflows/build-testing-image.yml
vendored
@@ -23,15 +23,16 @@ on:
|
||||
default: 'latest'
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
name: Build and Push Testing Image
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
Reference in New Issue
Block a user