Skip to content

Docs: Clarify dotfile handling for subject-path #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
9ff3713
Bump @actions/attest from 1.3.0 to 1.3.1 (#181)
bdehamer Jul 30, 2024
1cb5f76
bump predicate action from 1.1.0 to 1.1.1 (#182)
bdehamer Jul 30, 2024
210c191
bump actions/attest from 1.3.3 to 1.4.0 (#183)
bdehamer Jul 30, 2024
48f71d5
disable typescript-standard super linter (#191)
bdehamer Aug 6, 2024
588eda3
Bump the npm-development group with 3 updates (#187)
dependabot[bot] Aug 6, 2024
f9d4126
Bump @typescript-eslint/parser from 7.17.0 to 7.18.0 (#188)
dependabot[bot] Aug 6, 2024
d58ddf9
dynamic construction of oidc issuer (#195)
bdehamer Aug 9, 2024
310b0a4
update predicate action to 1.1.2 (#197)
bdehamer Aug 9, 2024
9f60666
Bump the npm-development group with 2 updates (#199)
dependabot[bot] Aug 12, 2024
399bb17
Bump @types/node from 22.2.0 to 22.4.0 in the npm-development group (…
dependabot[bot] Aug 19, 2024
3eb3242
Bump super-linter/super-linter from 6 to 7 (#205)
dependabot[bot] Aug 20, 2024
6149ea5
bump actions/attest from 1.4.0 to 1.4.1 (#209)
bdehamer Aug 22, 2024
814a778
Bump the npm-development group with 3 updates (#206)
dependabot[bot] Aug 23, 2024
a950611
Bump the npm-development group with 2 updates (#211)
dependabot[bot] Aug 26, 2024
13f0f0d
Bump @actions/attest from 1.3.1 to 1.4.1 (#212)
dependabot[bot] Aug 26, 2024
8f30a5c
Bump the npm-development group with 3 updates (#218)
dependabot[bot] Sep 4, 2024
d438876
add sigstore prober (#224)
bdehamer Sep 5, 2024
f1185f1
bump @actions/attest from 1.4.1 to 1.4.2 (#225)
bdehamer Sep 5, 2024
1c608d1
bump predicate from 1.1.2 to 1.1.3 (#226)
bdehamer Sep 5, 2024
43c221e
add stamp tag to prober (#227)
bdehamer Sep 5, 2024
dc98cd5
Bump the npm-development group with 2 updates (#229)
dependabot[bot] Sep 10, 2024
2de3600
bump jose from 5.8.0 to 5.9.2 (#239)
bdehamer Sep 16, 2024
4c42c37
Bump the npm-development group across 1 directory with 4 updates (#240)
dependabot[bot] Sep 16, 2024
40fae36
Bump eslint from 8.57.0 to 8.57.1 (#246)
dependabot[bot] Sep 23, 2024
0202c8c
add prober badges to readme (#242)
bdehamer Sep 23, 2024
ac6bfa4
Bump jose from 5.9.2 to 5.9.3 in the npm-development group (#244)
dependabot[bot] Sep 23, 2024
e5892d0
Bump the npm-development group with 3 updates (#263)
dependabot[bot] Oct 1, 2024
dff1ae6
prevent e2e workflows on forks (#272)
bdehamer Oct 3, 2024
3a27694
Bump @actions/core from 1.10.1 to 1.11.1 (#275)
dependabot[bot] Oct 7, 2024
b1d65e4
Add workflow file for publishing releases to immutable action package…
Jcambass Oct 14, 2024
d01b070
Bump the npm-development group with 3 updates (#278)
dependabot[bot] Oct 15, 2024
0704961
Bump actions/publish-immutable-action in the actions-minor group (#298)
dependabot[bot] Oct 28, 2024
21da615
Bump the npm-development group with 3 updates (#299)
dependabot[bot] Oct 29, 2024
390c0bb
Bump @types/node from 22.8.1 to 22.8.7 in the npm-development group (…
dependabot[bot] Nov 4, 2024
36fa7d0
bump @actions/attest from 1.4.2 to 1.5.0 (#309)
bdehamer Nov 5, 2024
ef24412
bump predicate from 1.1.3 to 1.1.4 (#310)
bdehamer Nov 5, 2024
dada0c3
Bump the npm-development group across 1 directory with 5 updates (#317)
dependabot[bot] Nov 18, 2024
a379071
Bump cross-spawn from 7.0.3 to 7.0.6 (#319)
dependabot[bot] Nov 18, 2024
fb315c1
Bump the npm-development group with 5 updates (#323)
dependabot[bot] Nov 26, 2024
90d4930
Bump the npm-development group with 3 updates (#329)
dependabot[bot] Dec 2, 2024
619dbb2
bump actions/attest to v2.0.0 (#321)
bdehamer Dec 4, 2024
c4fbc64
bump actions/attest from 2.0.0 to 2.0.1 (#406)
bdehamer Dec 6, 2024
f2f0851
Bump the npm-development group with 2 updates (#412)
dependabot[bot] Dec 9, 2024
9ad33ff
add note about gh plans supporting attestations (#414)
bdehamer Dec 9, 2024
7668571
add attestation-id and attestation-url outputs (#415)
bdehamer Dec 9, 2024
f4b7552
bump eslint from 8.57.1 to 9.16.0 (#418)
bdehamer Dec 16, 2024
4ecada3
Bump the npm-development group across 1 directory with 3 updates (#422)
dependabot[bot] Dec 16, 2024
963f8a0
Bump the npm-development group with 2 updates (#429)
dependabot[bot] Dec 23, 2024
1b4b366
Bump typescript-eslint in the npm-development group (#434)
dependabot[bot] Dec 31, 2024
c083b46
Bump the npm-development group with 2 updates (#438)
dependabot[bot] Jan 6, 2025
47c6e87
Bump the npm-development group with 4 updates (#444)
dependabot[bot] Jan 13, 2025
e06bbaf
Bump the npm-development group with 3 updates (#447)
dependabot[bot] Jan 21, 2025
3c016c1
bump actions/attest from v2.1.0 to v2.2.0 (#449)
bdehamer Jan 22, 2025
5d2ced9
Add example of upload-artifaction integration (#450)
bdehamer Jan 22, 2025
520d128
bump actions/attest from v2.1.0 to v2.2.0 (#449)
bdehamer Jan 22, 2025
d0d2b27
Bump the npm-development group with 5 updates (#455)
dependabot[bot] Jan 27, 2025
a20e224
Bump nock from 13.5.6 to 14.0.0 (#456)
dependabot[bot] Jan 27, 2025
ccf3390
Bump undici from 5.28.4 to 5.28.5 (#457)
dependabot[bot] Jan 28, 2025
2d4fa84
Bump the npm-development group with 2 updates (#461)
dependabot[bot] Feb 3, 2025
555f5b7
Bump the npm-development group with 6 updates (#465)
dependabot[bot] Feb 10, 2025
6e5e68c
Bump the npm-development group with 4 updates (#471)
dependabot[bot] Feb 18, 2025
1f22f30
Bump @octokit/request-error from 5.0.1 to 5.1.1 (#469)
dependabot[bot] Feb 24, 2025
d8181f5
Bump the npm-development group with 6 updates (#476)
dependabot[bot] Feb 26, 2025
f1321ec
Bump @octokit/request from 8.2.0 to 8.4.1 (#478)
dependabot[bot] Feb 26, 2025
f9eaf23
Bump actions/attest from 2.2.0 to 2.2.1 (#481)
bdehamer Feb 26, 2025
1176ef5
bump @actions/attest from 1.5.0 to 1.6.0 (#484)
bdehamer Feb 27, 2025
bd77c07
bump predicate from 1.1.4 to 1.1.5 (#485)
bdehamer Feb 27, 2025
c074443
pin actions/attest reference by commit sha (#493)
bdehamer Mar 5, 2025
b7ab740
Bump the npm-development group across 1 directory with 6 updates (#506)
dependabot[bot] Mar 14, 2025
877f50d
Bump typescript-eslint in the npm-development group (#516)
dependabot[bot] Mar 21, 2025
9d3beef
Bump the npm-development group with 4 updates (#554)
dependabot[bot] Mar 24, 2025
e042adb
Bump the npm-development group with 4 updates (#567)
dependabot[bot] Apr 1, 2025
d3b713a
Bump the actions-minor group with 2 updates (#566)
dependabot[bot] Apr 1, 2025
db473fd
bump actions/attest from 2.2.1 to 2.3.0 (#615)
bdehamer Apr 28, 2025
d82e7cd
offboard from eslint in superlinter (#618)
bdehamer Apr 28, 2025
0ca36ea
Bump the npm-development group with 7 updates (#582)
dependabot[bot] May 5, 2025
d848170
Bump super-linter/super-linter in the actions-minor group (#640)
dependabot[bot] May 20, 2025
7d91c40
Bump undici from 5.28.5 to 5.29.0 (#633)
dependabot[bot] May 20, 2025
39cb715
Bump the npm-development group across 1 directory with 7 updates (#641)
dependabot[bot] May 20, 2025
460c606
Docs: Clarify dotfile handling for subject-path
google-labs-jules[bot] Jun 5, 2025
11c67f2
Bump the npm-development group across 1 directory with 6 updates (#649)
dependabot[bot] Jun 10, 2025
afbf1f6
Merge branch 'main' into docs-clarify-dotfile-handling
RiskySolutions Jun 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ updates:
- minor
- patch
ignore:
- dependency-name: "actions/attest-build-provenance"
- dependency-name: 'actions/attest-build-provenance'

- package-ecosystem: npm
directory: /
Expand Down
83 changes: 0 additions & 83 deletions .github/linters/.eslintrc.yml

This file was deleted.

92 changes: 92 additions & 0 deletions .github/linters/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import eslint from '@eslint/js'
import importplugin from 'eslint-plugin-import'
import jestplugin from 'eslint-plugin-jest'
import tseslint from 'typescript-eslint'

export default tseslint.config(
// Ignore non-project files
{
name: 'ignore',
ignores: ['.github', 'dist', 'coverage', '**/*.json', 'jest.setup.js']
},
// Use recommended rules from ESLint, TypeScript, and other plugins
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
jestplugin.configs['flat/recommended'],
importplugin.flatConfigs.recommended,
importplugin.flatConfigs.typescript,
// Override some rules
{
name: 'project-settings',
languageOptions: {
ecmaVersion: 2023,
parserOptions: {
project: ['./.github/linters/tsconfig.json', './tsconfig.json']
}
},
rules: {
// eslint rules
eqeqeq: ['error', 'smart'],
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'no-console': 'off',
'no-implicit-globals': 'error',
'no-inner-declarations': 'error',
'no-invalid-this': 'error',
'no-return-assign': 'error',
'no-sequences': 'error',
'no-shadow': 'error',
'no-useless-concat': 'error',
'object-shorthand': ['error', 'always', { avoidQuotes: true }],
'one-var': ['error', 'never'],
'prefer-template': 'error',

// typescript-eslint rules
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/explicit-function-return-type': [
'error',
{ allowExpressions: true }
],
'@typescript-eslint/explicit-member-accessibility': [
'error',
{ accessibility: 'no-public' }
],
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-unnecessary-qualifier': 'error',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/prefer-for-of': 'warn',
'@typescript-eslint/prefer-function-type': 'warn',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/restrict-template-expressions': 'off',

// eslint-plugin-import rules
'import/extensions': 'error',
'import/first': 'error',
'import/no-absolute-path': 'error',
'import/no-commonjs': 'error',
'import/no-deprecated': 'warn',
'import/no-dynamic-require': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-mutable-exports': 'error',
'import/no-namespace': 'off',
'import/no-unresolved': ['error', { ignore: ['csv-parse/sync'] }],
'import/no-anonymous-default-export': [
'error',
{
allowAnonymousClass: false,
allowAnonymousFunction: false,
allowArray: true,
allowArrowFunction: false,
allowLiteral: true,
allowObject: true
}
]
}
}
)
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Dump output
run: jq < ${{ steps.attest-provenance.outputs.bundle-path }}

8 changes: 7 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ jobs:

- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@v6
uses: super-linter/super-linter/slim@v7.4.0
env:
DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_TYPESCRIPT_ES: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_JSCPD: false
VALIDATE_YAML_PRETTIER: false

- name: Run eslint
run: npm run lint:eslint
18 changes: 18 additions & 0 deletions .github/workflows/prober-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: GitHub Sigstore Prober

on:
workflow_dispatch:
schedule:
# run every 5 minutes, as often as Github Actions allows
- cron: '*/5 * * * *'

jobs:
prober:
if: github.repository_owner == 'actions'
permissions:
attestations: write
id-token: write
secrets: inherit
uses: ./.github/workflows/prober.yml
with:
sigstore: github
18 changes: 18 additions & 0 deletions .github/workflows/prober-public-good.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Public-Good Sigstore Prober

on:
workflow_dispatch:
schedule:
# run every 5 minutes, as often as Github Actions allows
- cron: '*/5 * * * *'

jobs:
prober:
if: github.repository_owner == 'actions'
permissions:
attestations: write
id-token: write
secrets: inherit
uses: ./.github/workflows/prober.yml
with:
sigstore: public-good
84 changes: 84 additions & 0 deletions .github/workflows/prober.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Prober Workflow

on:
workflow_call:
inputs:
sigstore:
description: 'Which Sigstore instance to use for signing'
required: true
type: string

jobs:
probe:
runs-on: ubuntu-latest
permissions:
attestations: write
id-token: write

steps:
- name: Request OIDC Token
run: |
curl "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=nobody" \
-H "Authorization: bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" \
-H "Accept: application/json; api-version=2.0" \
-H "Content-Type: application/json" \
--silent | jq -r '.value' | jq -R 'split(".") | .[0],.[1] | @base64d | fromjson'

- name: Create artifact
run: |
date > artifact

- name: Attest build provenance
uses: actions/attest-build-provenance@v2
env:
INPUT_PRIVATE-SIGNING: ${{ inputs.sigstore == 'github' && 'true' || 'false' }}
with:
subject-path: artifact

- name: Verify build artifact
env:
GH_TOKEN: ${{ github.token }}
run: |
gh attestation verify ./artifact --owner "$GITHUB_REPOSITORY_OWNER"

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
path: "artifact"

- name: Report attestation prober success
if: ${{ success() }}
uses: masci/datadog@6889e9d060f5368eeee51f8a3f06a52f65d04da3 # v1.9.1
with:
api-key: "${{ secrets.DATADOG_API_KEY }}"
service-checks: |
- check: "attestation-integration.actions.prober"
status: 0
host_name: github.com
tags:
- "catalog_service:${{ secrets.CATALOG_SERVICE }}"
- "service:${{ secrets.CATALOG_SERVICE }}"
- "stamp:${{ secrets.STAMP }}"
- "env:production"
- "repo:${{ github.repository }}"
- "team:${{ secrets.TEAM }}"
- "sigstore:${{ inputs.sigstore }}"

- name: Report attestation prober failure
if: ${{ failure() }}
uses: masci/datadog@6889e9d060f5368eeee51f8a3f06a52f65d04da3 # v1.9.1
with:
api-key: "${{ secrets.DATADOG_API_KEY }}"
service-checks: |
- check: "attestation-integration.actions.prober"
message: "${{ github.repository_owner }} failed prober check"
status: 2
host_name: github.com
tags:
- "catalog_service:${{ secrets.CATALOG_SERVICE }}"
- "service:${{ secrets.CATALOG_SERVICE }}"
- "stamp:${{ secrets.STAMP }}"
- "env:production"
- "repo:${{ github.repository }}"
- "team:${{ secrets.TEAM }}"
- "sigstore:${{ inputs.sigstore }}"
22 changes: 22 additions & 0 deletions .github/workflows/publish-immutable-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Publish Immutable Action Version'

on:
release:
types: [published]

permissions: {}

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write

steps:
- name: Checking out
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/publish-immutable-action@v0.0.4
Loading