Skip to content

cng: allow hash constructors to be inlined #108

cng: allow hash constructors to be inlined

cng: allow hash constructors to be inlined #108

Workflow file for this run

on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Check Vendored Imports
permissions:
contents: read
jobs:
check-imports:
# Verify that packages vendored into Go's standard library only use
# allowed stdlib imports. New imports require a matching update to the
# deps_test.go patch in microsoft-go.
runs-on: windows-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-download-base-url: "https://aka.ms/golang/release/latest"
- name: Check vendored package imports
shell: bash
run: |
go run github.com/microsoft/go-infra/cmd/check-imports@v0.0.13 \
-pkg ./internal/bcrypt \
-allow strconv,syscall,unicode/utf16,unsafe \
-pkg ./internal/sysdll \
-allow syscall,unsafe \
-pkg ./internal/subtle \
-allow unsafe \
-pkg ./cng/bbig \
-allow math/big \
-pkg ./cng