Skip to content

Commit

Permalink
Merge pull request #139 from crazy-max/gh-runtime-token
Browse files Browse the repository at this point in the history
Log GitHub Actions runtime token access controls
  • Loading branch information
crazy-max committed Jun 9, 2023
2 parents 2891007 + 445d2b3 commit aeda4d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {Inputs as BuildxInputs} from '@docker/actions-toolkit/lib/buildx/inputs'
import {Context} from '@docker/actions-toolkit/lib/context';
import {Docker} from '@docker/actions-toolkit/lib/docker/docker';
import {Exec} from '@docker/actions-toolkit/lib/exec';
import {GitHub} from '@docker/actions-toolkit/lib/github';
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';

import * as context from './context';
Expand All @@ -16,6 +17,14 @@ actionsToolkit.run(
const inputs: context.Inputs = await context.getInputs();
const toolkit = new Toolkit();

await core.group(`GitHub Actions runtime token ACs`, async () => {
try {
await GitHub.printActionsRuntimeTokenACs();
} catch (e) {
core.warning(e.message);
}
});

await core.group(`Docker info`, async () => {
try {
await Docker.printVersion();
Expand Down

0 comments on commit aeda4d1

Please sign in to comment.