mirror of
https://github.com/DeterminateSystems/determinate-nix-action.git
synced 2026-07-12 19:03:54 +00:00
Merge pull request #66 from DeterminateSystems/actions-pinning
Apply pinning to GitHub Actions
This commit is contained in:
commit
eee854fd4b
5 changed files with 52 additions and 2 deletions
16
.github/dependabot.yml
vendored
Normal file
16
.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: /
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
cooldown:
|
||||||
|
default-days: 7
|
||||||
|
groups:
|
||||||
|
actions:
|
||||||
|
patterns: ["*"]
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "DeterminateSystems/*"
|
||||||
|
commit-message:
|
||||||
|
prefix: ci
|
||||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -11,7 +11,9 @@ jobs:
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
contents: "read"
|
contents: "read"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- uses: ./.
|
- uses: ./.
|
||||||
- run: nix develop -c typos
|
- run: nix develop -c typos
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
|
|
|
||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -25,7 +25,9 @@ jobs:
|
||||||
shorttag=$(echo "$VERSION" | cut -d'.' -f1)
|
shorttag=$(echo "$VERSION" | cut -d'.' -f1)
|
||||||
echo "shorttag=$shorttag" >> "$GITHUB_OUTPUT"
|
echo "shorttag=$shorttag" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Create the short tag
|
- name: Create the short tag
|
||||||
env:
|
env:
|
||||||
SHORTTAG: ${{ steps.check_tag.outputs.shorttag }}
|
SHORTTAG: ${{ steps.check_tag.outputs.shorttag }}
|
||||||
|
|
|
||||||
25
.github/workflows/zizmor.yml
vendored
Normal file
25
.github/workflows/zizmor.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
name: zizmor
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
zizmor:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
security-events: write
|
||||||
|
contents: read
|
||||||
|
actions: read
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Run zizmor
|
||||||
|
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
|
||||||
|
with:
|
||||||
|
config: .github/zizmor.yml
|
||||||
5
.github/zizmor.yml
vendored
Normal file
5
.github/zizmor.yml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
rules:
|
||||||
|
unpinned-uses:
|
||||||
|
config:
|
||||||
|
policies:
|
||||||
|
DeterminateSystems/*: ref-pin
|
||||||
Loading…
Add table
Add a link
Reference in a new issue