chore: pin dockerfile & limit CI perms (#732)
This commit is contained in:
Родитель
1b9185c181
Коммит
ff6fd1af11
|
@ -11,6 +11,9 @@ on:
|
|||
schedule:
|
||||
- cron: "0 0 * * *" # every day at midnight
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
smoke-test:
|
||||
runs-on: ["self-hosted", "1ES.Pool=1ES-OSE-GH-Pool"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:6.0-cbl-mariner2.0 AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0-cbl-mariner2.0@sha256:0a55184c1bea8da25a6b9ff0333f5e72aca18a4e76c85e8bcec3ebcf789f1bed AS build
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN dotnet publish -c Release -o out \
|
||||
|
@ -10,7 +10,7 @@ RUN dotnet publish -c Release -o out \
|
|||
-p:PublishSingleFile=true \
|
||||
./src/Microsoft.ComponentDetection
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0-cbl-mariner2.0 AS runtime
|
||||
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0-cbl-mariner2.0@sha256:3eb4347c76c6765bf7f7a7e1e483fefeba5f4a1271524465e18283dd2a2b9611 AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/out ./
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче